• Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • Jenkins version 2.332.2
      Build Authorization Token Root installed
      Build Token Trigger installed

      Hello.

      How can I use Trigger builds remotely in Pipeline?

      Via web interface Trigger builds remotely works fine, I only set up Authentication Token.

      Is it possible use Trigger builds remotely in singe Pipeline?

          [JENKINS-68528] Pipeline for Trigger builds remotely

          Kalle Niemitalo added a comment - - edited

          If the jobs are on the same Jenkins controller, then the Pipeline: Build Step plugin may be suitable. You can also declare triggers { upstream(…) } on the job that needs to be triggered.

          Otherwise, try the HTTP Request plugin, or just run curl in an sh step.

          Kalle Niemitalo added a comment - - edited If the jobs are on the same Jenkins controller, then the Pipeline: Build Step plugin may be suitable. You can also declare triggers { upstream(…) } on the job that needs to be triggered. Otherwise, try the HTTP Request plugin, or just run curl in an sh step.

          Markus Winter added a comment -

          You need the Parameterized Remote Trigger plugin. It has a detailed guide how to use it in pipelines.

           

          Markus Winter added a comment - You need the Parameterized Remote Trigger plugin. It has a detailed guide how to use it in pipelines.  

          perrfect perrfect added a comment - - edited

          Guys, hello.

          Thank you for replies.

          But I don't understand how correctly use trigger builds remotely in a pipeline.

          In my case I use this builds trigger for Bitbucket webhook:

          http://my.jenkins.server/buildByToken/build?job=sysadm/test_job&token=1128295d08e82f51a73ce773a197ea0d35
          

          Via the web interface, when I add only the token to a field trigger builds remotely, everything works fine, but I have not found a decision how can use it in Pipeline.
          Do I need to install an additional plugin for that?

          perrfect perrfect added a comment - - edited Guys, hello. Thank you for replies. But I don't understand how correctly use trigger builds remotely in a pipeline. In my case I use this builds trigger for Bitbucket webhook: http: //my.jenkins.server/buildByToken/build?job=sysadm/test_job&token=1128295d08e82f51a73ce773a197ea0d35 Via the web interface, when I add only the token to a field trigger builds remotely, everything works fine, but I have not found a decision how can use it in Pipeline. Do I need to install an additional plugin for that?

            Unassigned Unassigned
            perrfect perrfect perrfect
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: