• Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • job-dsl-plugin
    • None

      authenticationToken has been deprecated from pipeline jobs. how can we trigger pipeline remotely? 

          [JENKINS-52743] authenticationToken has been deprecated.

          shagun jian created issue -
          Oleg Nenashev made changes -
          Component/s New: pipeline [ 21692 ]
          Component/s Original: _unsorted [ 19622 ]
          Oleg Nenashev made changes -
          Assignee Original: Oleg Nenashev [ oleg_nenashev ]

          Oleg Nenashev added a comment -

          Not sure what is this query about.

          Jobs are triggered via CLI or REST API, there should be nothing specific to Pipeline

          Oleg Nenashev added a comment - Not sure what is this query about. Jobs are triggered via CLI or REST API, there should be nothing specific to Pipeline
          Oleg Nenashev made changes -
          Component/s New: _unsorted [ 19622 ]

          Markus Baur added a comment -

          In order to run pipeline scripts from a remote point one could write a script like this:

          curl -X POST "https://jenkins.host/job/my_cool_job/build"
          

          triggering a job on the jenkins server.
          For some good reasons this does not work without autorization, so jenkins returns "Authentication required" which is expected.

          Some time ago it was possible to add an authenticationToken to a pipelineJob, so this would essentially become

          curl -X POST "https://jenkins.host/job/my_cool_job/build" --data "token=MySuperSecretToken"
          

          So everyone in our department could trigger the job by invoking a simple script.
          There is one job for every computer in our department doing some management and thus these jobs change frequently.
          Because of this we are using jobDSL to update and configure all of those jobs. Since the token (and with it scm and concurrentBuild) are deprecated for pipelineJobs now, our infrastructure falls apart.

          So it would be nice if you could redirect us to the appropriate migration paths or reintroduce these features.

          Markus Baur added a comment - In order to run pipeline scripts from a remote point one could write a script like this: curl -X POST "https://jenkins.host/job/my_cool_job/build" triggering a job on the jenkins server. For some good reasons this does not work without autorization, so jenkins returns "Authentication required" which is expected. Some time ago it was possible to add an authenticationToken to a pipelineJob, so this would essentially become curl -X POST "https://jenkins.host/job/my_cool_job/build" --data "token=MySuperSecretToken" So everyone in our department could trigger the job by invoking a simple script. There is one job for every computer in our department doing some management and thus these jobs change frequently. Because of this we are using jobDSL to update and configure all of those jobs. Since the token (and with it scm and concurrentBuild) are deprecated for pipelineJobs now, our infrastructure falls apart. So it would be nice if you could redirect us to the appropriate migration paths or reintroduce these features.
          Markus Baur made changes -
          Issue Type Original: New Feature [ 2 ] New: Bug [ 1 ]
          Markus Baur made changes -
          Component/s New: job-dsl-plugin [ 16720 ]
          manus made changes -
          Link New: This issue duplicates JENKINS-31832 [ JENKINS-31832 ]
          Alexander Komarov made changes -
          Assignee New: Daniel Spilker [ daspilker ]

            daspilker Daniel Spilker
            jainsh shagun jian
            Votes:
            6 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: