Details

    • 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

          Hide
          bap bap added a comment -

          Michael,

          I have inverted the label (token) and the parameter value from your example, as I believe it makes the labels simpler and the selection more flexible.

          Therefore, you will be able to give one publisher the label A another B and a 3rd C.

          The value of the parameter to select A and C would then be [AC] (actually [AC]$ due to JENKINS-10201) or A|C
          To only publish to A, the expression would also be A
          For all 3 - [ABC]$ A|B|C .* or .+ would all work

          Bap.

          Show
          bap bap added a comment - Michael, I have inverted the label (token) and the parameter value from your example, as I believe it makes the labels simpler and the selection more flexible. Therefore, you will be able to give one publisher the label A another B and a 3rd C. The value of the parameter to select A and C would then be [AC] (actually [AC] $ due to JENKINS-10201 ) or A|C To only publish to A, the expression would also be A For all 3 - [ABC] $ A|B|C .* or .+ would all work Bap.
          Hide
          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
          Show
          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
          Hide
          dogfood dogfood added a comment -
          Show
          dogfood dogfood added a comment - Integrated in plugins_publish-over-ftp-plugin #141
          Hide
          dogfood dogfood added a comment -
          Show
          dogfood dogfood added a comment - Integrated in plugins_publish-over-ssh-plugin #150
          Hide
          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
          Show
          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

            People

            • Assignee:
              bap bap
              Reporter:
              pushy Michael Pisula
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: