简体   繁体   中英

how to setup remote host for jenkins parameterized remote trigger plugin

How do you setup the remote host field for Jenkins Parameterized Remote Trigger Plugin? The documentation doesn't seem clear to me, and this explanatory blog post has some Jenkins UI features that I can't locate.

This article suggests going to Manage Jenkins > Configure Credentials to add a Domain, but when I go there I see no "Add Domain" button:

在此处输入图片说明

The plugin wiki shows screenshots of a section on a page labelled "Parameterized Remote Trigger Configuration". How do I view this section in Jenkins, where is it? I thought it might be in Manage Jenkins > Manage Plugins , but there is no "Manage" or "Configure" button there:

在此处输入图片说明

How do I add a "Host" to my Parameterized Remote Trigger Plugin so that I can use it in a Jenkins job?

在此处输入图片说明

Update : The official Parameterized Remote Plugin has gone stale and may not fully work. sap-production appears to be maintaining a much more up-to-date version here . You can install it on your instance by cloning the repo then running mvn package . Then install the ./target/Parameterized-Remote-Trigger.hpi file using Manage Jenkins > Manage Plugins > Advanced (tab) > Upload Plugin

It appears that the Jenkins UI has changed over time. Here is how it works now.

Add The Domain

On the left sidebar of the main Jenkins UI, click Credentials > System > Add domain

在此处输入图片说明

Name the domain whatever you like, then click Add > Hostname

在此处输入图片说明

Fill in the IP or hostname of the remote Jenkins instance in "Includes"

在此处输入图片说明

Set Up Credentials

The previous step leaves you on a page with an "Add Credentials" button. Click that. If you can't find it, then you can locate it from the main view via: Credentials > System > Your Domain

在此处输入图片说明

If not already selected, then select "Username with password". Choose a scope.

Fill in all the fields as shown. I personally recommend creating a new user on the remote Jenkins and generating an API token and using that here, but you could also just generate an API token for your own user. Click OK.

在此处输入图片说明

Configure Parameterized Remote Trigger Plugin

From the main Jenkins page click Manage Jenkins > Configure System , then scroll down to the Parameterized Remote Trigger Configuration section and click Add .

Fill out at least the Authentication and Remote address and port properties, then click Save.

在此处输入图片说明

Add Build Step In Job

Open an existing Jenkins job or create a new one, scroll down to the Build section, and add the build step Trigger a remote parameterized job :

在此处输入图片说明

Select your host, and fill the rest of the values in.

在此处输入图片说明

This is well documented on the plugin's wiki page . See the "System configuration option" section. If you're having trouble with one of the fields specifically, please add more detail to your question.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM