×
Find plugins

Parameterized Remote Trigger
3.0.6Minimum Jenkins requirement: 1.642.3ID: Parameterized-Remote-Trigger

A plugin for Jenkins CI that gives you the ability to trigger parameterized builds on a  remote  Jenkins server as part of your build.

Similar to the Parameterized Trigger Plugin, but for remote servers.

This is done by calling the /buildWithParameters URL on the remote server. (or the /build URL, if you don't specify any parameters)

This plugin also has support for build authorization tokens (as defined here ), and plays nicely with these other guys:

Screenshots

System configuration option


System configuration (via script)




import jenkins.model.Jenkins
import org.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteBuildConfiguration
import org.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteJenkinsServer
import org.jenkinsci.plugins.ParameterizedRemoteTrigger.auth2.CredentialsAuth;

// get Jenkins instance
Jenkins jenkins = Jenkins.getInstance();

def auth = new CredentialsAuth();
auth.setCredentials("credential.id")

def remoteJenkinsServer = new RemoteJenkinsServer();
remoteJenkinsServer.setDisplayName("instance.name");
remoteJenkinsServer.setAddress("instance.url");
remoteJenkinsServer.setAuth2(auth);
def descriptor = jenkins.getDescriptorByType(RemoteBuildConfiguration.DescriptorImpl.class);
descriptor.setRemoteSites(remoteJenkinsServer);

jenkins.save()




Job setup options

Change-log 

 

3.0.6 (Sep 19th, 2018)

New feature

  • Disable remote trigger job step instead of removing it

Improvement

  • None

Bug fixes

3.0.5 (Aug 20th, 2018)

New feature

  • None

Improvement

  • None

Bug fixes

3.0.4 (Jul 30th, 2018)

New feature

  • Support to abort remote job

Improvement

  • None

Bug fixes

3.0.3 (Jul 23th, 2018)

New feature

  • None

Improvement

  • Add concurrent connection restriction to prevent remote servers from blocking
  • Add job info. & crumb cache to reduce the dummy inquiries when parallel triggering

Bug fixes


Important change

  • jdk version must be at least v1.8

3.0.2 (Jul 18th, 2018)

New feature

  • None

Improvement

  • HTTP utility reorganized
    • post with form-data

Bug fixes

  • Fix parameters are too long (HTTP status 414)

3.0.1 (Jul 10th, 2018)

New feature

  • Support triggering remote jobs via Jenkins proxy

Improvement

  • code refinement

Bug fixes

  • [JENKINS-47919 ]( JENKINS-47919 - Getting issue details... STATUS ) (clarified & fixed)

3.0.0 (May 17th, 2018)

New feature

  • Pipeline support

     Improvement

     Bug fixes

2.2.0 (May 12th, 2015)

New Features/Enhancements:

  • Ability to debug connection errors with (optional) enhanced console output (pull request)

Bug fixes:

2.1.3 (July 6th, 2014)

A release release! Version 2.1.2 never made it to the plugin store due to a bug in the "maven release plugin" when using git 1.8.5.
Naturally, all changes from 2.1.2 are part of this release as well.

Bug fixes:

2.1.2 (April 26th, 2014)

Bug fixes:

2.1 (Feb 17th, 2014)

New Features/Enhancements:

  • ability to specify the list of remote parameters from a file (request ticket)
  • optionally block the local build until remote build is complete (request ticket)

Misc:
The console output has also been cleansed of displaying any URLs, since this could pose a security risk for public CI environments.
Special thanks to @tombrown5 for his contributions to the last item mentioned above

2.0 (Dec 25th, 2013)

New Features/Enhancements:

Misc:
Special thanks to @elksson for his contributions to the last 2 items mentioned above.

1.1 (Nov 30th, 2013)

Bug fixes:

  • closing potential security gap for public-read environments

New Features/Enhancemenst:

  • ability to not mark the build as failed if the remote build fails

Misc:

  • General code clean-up

1.0 

Initial release

Available features:

  • Trigger parameterized build on a remote Jenkins server
  • Trigger non-parameterized build on a remote Jenkins server
  • Authentication via username + API token
  • Support for "build token root" plugin

Issues

type key summary

Data cannot be retrieved due to an unexpected error.

View these issues in Jira

ArchivesGet past versions
Labels