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

Parametrized publishing

    XMLWordPrintable

Details

    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

          dogfood dogfood added a comment -

          Integrated in plugins_publish-over-parent #129
          [FIXED JENKINS-10006] Parameterized publishing

          bap2000 :
          Files :

          • src/main/java/jenkins/plugins/publish_over/BPPlugin.java
          • src/main/java/jenkins/plugins/publish_over/ParamPublish.java
          • src/test/java/jenkins/plugins/publish_over/BapPublisherTest.java
          • src/test/java/jenkins/plugins/publish_over/ParamPublishTest.java
          • src/main/java/jenkins/plugins/publish_over/PubSelector.java
          • src/test/java/jenkins/plugins/publish_over/BPInstanceConfigTest.java
          • src/main/java/jenkins/plugins/publish_over/BapPublisher.java
          • src/main/java/jenkins/plugins/publish_over/PublisherLabel.java
          • src/main/java/jenkins/plugins/publish_over/BPInstanceConfig.java
          • src/main/resources/jenkins/plugins/publish_over/Messages.properties
          dogfood dogfood added a comment - Integrated in plugins_publish-over-parent #129 [FIXED JENKINS-10006] Parameterized publishing bap2000 : Files : src/main/java/jenkins/plugins/publish_over/BPPlugin.java src/main/java/jenkins/plugins/publish_over/ParamPublish.java src/test/java/jenkins/plugins/publish_over/BapPublisherTest.java src/test/java/jenkins/plugins/publish_over/ParamPublishTest.java src/main/java/jenkins/plugins/publish_over/PubSelector.java src/test/java/jenkins/plugins/publish_over/BPInstanceConfigTest.java src/main/java/jenkins/plugins/publish_over/BapPublisher.java src/main/java/jenkins/plugins/publish_over/PublisherLabel.java src/main/java/jenkins/plugins/publish_over/BPInstanceConfig.java src/main/resources/jenkins/plugins/publish_over/Messages.properties
          dogfood dogfood added a comment - Integrated in plugins_publish-over-ftp-plugin #141
          dogfood dogfood added a comment - Integrated in plugins_publish-over-ssh-plugin #150
          dogfood dogfood added a comment -

          Integrated in plugins_publish-over-cifs-plugin #10
          [FIXED JENKINS-10006] Parameterized publishing

          bap2000 :
          Files :

          • src/main/resources/jenkins/plugins/publish_over_cifs/CifsPublisherPlugin/config.jelly
          • src/main/java/jenkins/plugins/publish_over_cifs/CifsPublisher.java
          • src/main/java/jenkins/plugins/publish_over_cifs/CifsPublisherPlugin.java
          • src/main/java/jenkins/plugins/publish_over_cifs/CifsPromotionPublisherPlugin.java
          • src/main/java/jenkins/plugins/publish_over_cifs/CifsParamPublish.java
          • src/main/webapp/help/config/parameterName.html
          • src/main/resources/jenkins/plugins/publish_over_cifs/CifsPublisherPlugin/config.properties
          • src/test/java/jenkins/plugins/publish_over_cifs/CifsPublisherTest.java
          • src/main/java/jenkins/plugins/publish_over_cifs/CifsBuilderPlugin.java
          • src/main/resources/jenkins/plugins/publish_over_cifs/CifsPublisherPlugin/help-paramPublish.jelly
          • src/main/webapp/help/config/label.html
          • src/main/java/jenkins/plugins/publish_over_cifs/CifsPublisherLabel.java
          dogfood dogfood added a comment - Integrated in plugins_publish-over-cifs-plugin #10 [FIXED JENKINS-10006] Parameterized publishing bap2000 : Files : src/main/resources/jenkins/plugins/publish_over_cifs/CifsPublisherPlugin/config.jelly src/main/java/jenkins/plugins/publish_over_cifs/CifsPublisher.java src/main/java/jenkins/plugins/publish_over_cifs/CifsPublisherPlugin.java src/main/java/jenkins/plugins/publish_over_cifs/CifsPromotionPublisherPlugin.java src/main/java/jenkins/plugins/publish_over_cifs/CifsParamPublish.java src/main/webapp/help/config/parameterName.html src/main/resources/jenkins/plugins/publish_over_cifs/CifsPublisherPlugin/config.properties src/test/java/jenkins/plugins/publish_over_cifs/CifsPublisherTest.java src/main/java/jenkins/plugins/publish_over_cifs/CifsBuilderPlugin.java src/main/resources/jenkins/plugins/publish_over_cifs/CifsPublisherPlugin/help-paramPublish.jelly src/main/webapp/help/config/label.html src/main/java/jenkins/plugins/publish_over_cifs/CifsPublisherLabel.java

          For your information, all publish-over-ssh component type JENKINS issues related to the Publish Over SSH plugin have been transferred to Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues

          Here is the direct link to this issue in Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues/234
          And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-ssh-plugin/issues?q=%22JENKINS-10006%22

          (Note: this is an automated bulk comment)

          gmcdonald Gavin McDonald added a comment - For your information, all publish-over-ssh component type JENKINS issues related to the Publish Over SSH plugin have been transferred to Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues Here is the direct link to this issue in Github: https://github.com/jenkinsci/publish-over-ssh-plugin/issues/234 And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-ssh-plugin/issues?q=%22JENKINS-10006%22 (Note: this is an automated bulk comment)

          People

            bap bap
            pushy Michael Pisula
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: