Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-23251

BUILD_USER_ID is not set when the build is fired using the API

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      1.6

      Description

      When I fire a job via API with something like:

      curl -v -u "$login:$token" -X POST $url -d token=$jobtoken

      The BUILD_USER_ID isn't set, and so my job don't work.

        Attachments

          Activity

          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          What is the URL that you rae hitting with curl?

          Show
          kohsuke Kohsuke Kawaguchi added a comment - What is the URL that you rae hitting with curl ?
          Hide
          caarlos0 Carlos Becker added a comment -

          Sorry, forgot to replace the env var in the main issue.

          The path is: /job/MyJob/buildWithParameters

          Show
          caarlos0 Carlos Becker added a comment - Sorry, forgot to replace the env var in the main issue. The path is: /job/MyJob/buildWithParameters
          Hide
          caarlos0 Carlos Becker added a comment -

          Any news on this?

          Show
          caarlos0 Carlos Becker added a comment - Any news on this?
          Hide
          emszpak Marcin Zajączkowski added a comment -

          Should be fixed by https://github.com/jenkinsci/build-user-vars-plugin/pull/13 . However, a build cause doesn't know about triggering user when a token is used and only "remoteTrigger" dummy username is set.

          Show
          emszpak Marcin Zajączkowski added a comment - Should be fixed by https://github.com/jenkinsci/build-user-vars-plugin/pull/13 . However, a build cause doesn't know about triggering user when a token is used and only "remoteTrigger" dummy username is set.
          Hide
          zedasvacas Fábio Silva added a comment -

          Resolved in build-user-vars-1.6

          Show
          zedasvacas Fábio Silva added a comment - Resolved in build-user-vars-1.6

            People

            Assignee:
            zedasvacas Fábio Silva
            Reporter:
            caarlos0 Carlos Becker
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: