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

Pipeline for Trigger builds remotely

    XMLWordPrintable

Details

    Description

      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?

      Attachments

        Activity

          kon 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.

          kon 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.
          mawinter69 Markus Winter added a comment -

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

           

          mawinter69 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 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 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?

          People

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

            Dates

              Created:
              Updated: