Details
-
Type:
New Feature
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Component/s: publish-over-ssh-plugin
-
Labels:None
-
Similar Issues:
Description
It would be great if it would be possible to define a parameter and a necessary value for each server or each transfer group, that is evaluated before publishing, and will skip the publishing if the parameter does not have the value.
Say, I have a job which publishes data to servers A, B and C. I would configure parameter X as .*A.* for server A, .*\B.* for server B and .*C.* for server C.
If I set the parameter X to "A" the files will only be published to server A, if I set X to "ABC" the files will be published to all three servers.
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Description |
It would be great if it would be possible to define a parameter and a necessary value for each server or each transfer group, that is evaluated before publishing, and will skip the publishing if the parameter does not have the value. Say, I have a job which publishes data to servers A, B and C. I would configure parameter X as .*A.* for server A, .*B.* for server B and .*C.* for server C. If I set the parameter X to "A" the files will only be published to server A, if I set X to "ABC" the files will be published to all three servers. |
It would be great if it would be possible to define a parameter and a necessary value for each server or each transfer group, that is evaluated before publishing, and will skip the publishing if the parameter does not have the value. Say, I have a job which publishes data to servers A, B and C. I would configure parameter X as .\*A.\* for server A, .*\B.\* for server B and .\*C.\* for server C. If I set the parameter X to "A" the files will only be published to server A, if I set X to "ABC" the files will be published to all three servers. |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Status | Resolved [ 5 ] | Closed [ 6 ] |
Workflow | JNJira [ 140194 ] | JNJira + In-Review [ 205175 ] |
Code changed in jenkins
User: bap2000
Path:
src/main/java/jenkins/plugins/publish_over/BPInstanceConfig.java
src/main/java/jenkins/plugins/publish_over/BPPlugin.java
src/main/java/jenkins/plugins/publish_over/BapPublisher.java
src/main/java/jenkins/plugins/publish_over/ParamPublish.java
src/main/java/jenkins/plugins/publish_over/PubSelector.java
src/main/java/jenkins/plugins/publish_over/PublisherLabel.java
src/main/resources/jenkins/plugins/publish_over/Messages.properties
src/test/java/jenkins/plugins/publish_over/BPInstanceConfigTest.java
src/test/java/jenkins/plugins/publish_over/BapPublisherTest.java
src/test/java/jenkins/plugins/publish_over/ParamPublishTest.java
http://jenkins-ci.org/commit/publish-over-plugin/e639bd8503b8adb9da23c7bd24794b7283bd41d2
Log:
[FIXED JENKINS-10006] Parameterized publishing