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

Copy Artifacts plugin does not accept Maven module as Project Name with TriggeredBuildSelector

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When copying artifacts from a Maven project: if you type the bare Jenkins project name (i.e. "my-build-trunk") into the "Project Name" field then Jenkins will display the message:

      "Artifacts will be copied from all modules of this Maven project; click the help icon to learn about selecting a particular module."

      At this point, a reasonable user would expect to be able to configure a Maven module instead, e.g. "my-build-trunk/com.stuff.my$moduleName".

      However, the TriggeredBuildSelector does not understand Maven project names because it is only expecting a bare Jenkins project name. This creates such frustration and confusion that users are forced to examine the plugin's source code to find out WHAT ON EARTH is going wrong.

        Attachments

          Activity

          Hide
          ikedam ikedam added a comment -

          TriggeredBuildSelector works as so for multi-configuration projects.
          This can be resolved by just doing like that.

          Show
          ikedam ikedam added a comment - TriggeredBuildSelector works as so for multi-configuration projects. This can be resolved by just doing like that.
          Show
          ikedam ikedam added a comment - https://github.com/jenkinsci/copyartifact-plugin/pull/48
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ikedam
          Path:
          src/test/java/hudson/plugins/copyartifact/TriggeredBuildSelectorTest.java
          http://jenkins-ci.org/commit/copyartifact-plugin/0bf22b2a775356f1d0150dc60f15e59fcd1a7304
          Log:
          JENKINS-14653 Added a test to reproduce JENKINS-14653. TriggeredBuildSelector cannot handle maven modules as upstreams.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/test/java/hudson/plugins/copyartifact/TriggeredBuildSelectorTest.java http://jenkins-ci.org/commit/copyartifact-plugin/0bf22b2a775356f1d0150dc60f15e59fcd1a7304 Log: JENKINS-14653 Added a test to reproduce JENKINS-14653 . TriggeredBuildSelector cannot handle maven modules as upstreams.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ikedam
          Path:
          src/main/java/hudson/plugins/copyartifact/TriggeredBuildSelector.java
          http://jenkins-ci.org/commit/copyartifact-plugin/c4ea4eb039d33e9add4f3c5cb1c92cf8aa87115c
          Log:
          [FIXED JENKINS-14653] Accept both child and parent builds as triggering build. This is a generalization of handling MatrixProject.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/main/java/hudson/plugins/copyartifact/TriggeredBuildSelector.java http://jenkins-ci.org/commit/copyartifact-plugin/c4ea4eb039d33e9add4f3c5cb1c92cf8aa87115c Log: [FIXED JENKINS-14653] Accept both child and parent builds as triggering build. This is a generalization of handling MatrixProject.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ikedam
          Path:
          src/main/java/hudson/plugins/copyartifact/TriggeredBuildSelector.java
          src/test/java/hudson/plugins/copyartifact/TriggeredBuildSelectorTest.java
          http://jenkins-ci.org/commit/copyartifact-plugin/c9809c88174520376501970cb6b8135085eb727a
          Log:
          Merge pull request #48 from ikedam/feature/JENKINS-14653_MavenWithTriggeredBuildSelector

          JENKINS-14653 maven with triggered build selector

          Conflicts:
          src/main/java/hudson/plugins/copyartifact/TriggeredBuildSelector.java
          src/test/java/hudson/plugins/copyartifact/TriggeredBuildSelectorTest.java

          Compare: https://github.com/jenkinsci/copyartifact-plugin/compare/c11b82688863...c9809c881745

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/main/java/hudson/plugins/copyartifact/TriggeredBuildSelector.java src/test/java/hudson/plugins/copyartifact/TriggeredBuildSelectorTest.java http://jenkins-ci.org/commit/copyartifact-plugin/c9809c88174520376501970cb6b8135085eb727a Log: Merge pull request #48 from ikedam/feature/ JENKINS-14653 _MavenWithTriggeredBuildSelector JENKINS-14653 maven with triggered build selector Conflicts: src/main/java/hudson/plugins/copyartifact/TriggeredBuildSelector.java src/test/java/hudson/plugins/copyartifact/TriggeredBuildSelectorTest.java Compare: https://github.com/jenkinsci/copyartifact-plugin/compare/c11b82688863...c9809c881745
          Hide
          ikedam ikedam added a comment -

          Fixed in copyartifact 1.32.

          Show
          ikedam ikedam added a comment - Fixed in copyartifact 1.32.

            People

            • Assignee:
              ikedam ikedam
              Reporter:
              chrisr Chris Rankin
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: