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

Not possible to trigger from jenkins pipeline

      I would like to use this plugin from a jenkins pipeline to easily trigger a build on the same node, something like

      step([$class: 'TriggerBuilder', projects: 'windows_reboot', current: true, parameters: 'cleanup_windows_workspace=$WORKSPACE'])

      Looks this plugin doesn't have support yet to be used from a jenkins pipeline (as far as I could find, no documentation at least)

          [JENKINS-38499] Not possible to trigger from jenkins pipeline

          dan tran added a comment -

          plus 1.

          I have a pipeline jenkins file with a number of parameters such as vCenter info and other. I would like my user to customize the parameters via their own jekninsfile and then call this plugin passing thru all of its params to the main pipeline job.

          For now, I have user to manually create a freeslyle add all need params and trigger the pipeline.

          Best if can use jenkinsfile to souce control the settings for each site

          dan tran added a comment - plus 1. I have a pipeline jenkins file with a number of parameters such as vCenter info and other. I would like my user to customize the parameters via their own jekninsfile and then call this plugin passing thru all of its params to the main pipeline job. For now, I have user to manually create a freeslyle add all need params and trigger the pipeline. Best if can use jenkinsfile to souce control the settings for each site

          Denys Digtiar added a comment -

          Have you tried using the build step instead? https://jenkins.io/doc/pipeline/steps/pipeline-build-step/

          Denys Digtiar added a comment - Have you tried using the build step instead? https://jenkins.io/doc/pipeline/steps/pipeline-build-step/

            huybrechts huybrechts
            jwillemsen Johnny Willemsen
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: