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

`SpecificBuildSelector` should accept build ids

    Details

    • Similar Issues:

      Description

      It makes it easier to use SpecificBuildSelector in pipeline jobs like this:

      • Before
        copyArtifacts(projectName: "fromJob", selector: specific("${build("fromJob").number}")
        
      • After
        copyArtifacts(projectName: "fromJob", selector: specific("build("fromJob").id")
        

        Attachments

          Activity

          Show
          ikedam ikedam added a comment - https://github.com/jenkinsci/copyartifact-plugin/pull/101
          Hide
          ikedam ikedam added a comment -

          This feature found to be useless, as build IDs are always same to build numbers since Jenkins 1.597.
          JENKINS-24380

          Show
          ikedam ikedam added a comment - This feature found to be useless, as build IDs are always same to build numbers since Jenkins 1.597. JENKINS-24380
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ikedam
          Path:
          src/test/java/hudson/plugins/copyartifact/CopyArtifactWorkflowTest.java
          http://jenkins-ci.org/commit/copyartifact-plugin/f8078da1d812c2bbe566b59ae57685ad591d9418
          Log:
          JENKINS-47074 Add a test to verify SpecificBuildSelector accepts build IDs

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/test/java/hudson/plugins/copyartifact/CopyArtifactWorkflowTest.java http://jenkins-ci.org/commit/copyartifact-plugin/f8078da1d812c2bbe566b59ae57685ad591d9418 Log: JENKINS-47074 Add a test to verify SpecificBuildSelector accepts build IDs
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: ikedam
          Path:
          src/test/java/hudson/plugins/copyartifact/CopyArtifactWorkflowTest.java
          http://jenkins-ci.org/commit/copyartifact-plugin/48f40db94625af78272234c432c28c6e9a1806fa
          Log:
          Merge pull request #102 from ikedam/feature/JENKINS-47074_TestSpecificWithId

          JENKINS-47074 Verify SpecificBuildSelector accepts build IDs

          Compare: https://github.com/jenkinsci/copyartifact-plugin/compare/75378904f7b8...48f40db94625

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: src/test/java/hudson/plugins/copyartifact/CopyArtifactWorkflowTest.java http://jenkins-ci.org/commit/copyartifact-plugin/48f40db94625af78272234c432c28c6e9a1806fa Log: Merge pull request #102 from ikedam/feature/ JENKINS-47074 _TestSpecificWithId JENKINS-47074 Verify SpecificBuildSelector accepts build IDs Compare: https://github.com/jenkinsci/copyartifact-plugin/compare/75378904f7b8...48f40db94625
          Hide
          ikedam ikedam added a comment -

          Added a test to verify this behavior in 1.39.1.

          Show
          ikedam ikedam added a comment - Added a test to verify this behavior in 1.39.1.

            People

            • Assignee:
              ikedam ikedam
              Reporter:
              ikedam ikedam
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: