Hi there,

      I'm experiencing an issue with the last version of Jenkins 2.235.2.

      I have a jenkins declarative pipeline whit a  fews steps, that includes creating of an artifact and the trigger of another build job, everything from a pipleine prospective works fine, the issue that I'm having is with the downstream job that is not coping the artifact created by the

      last build running but from the last success build.

      I can attach some console output

      Started by upstream project "NJ/deploy%2Fproduction" build number 31
      originally caused by:
       Started by user DEV Jenkins
      Running as DEV Jenkins
      Running in Durability level: MAX_SURVIVABILITY
      [Pipeline] Start of Pipeline
      [Pipeline] node
      Running on DEV-DEPLOY01 in /jenkins/workspace/NJ/DeployToProd
      [Pipeline] {
      [Pipeline] stage
      [Pipeline] { (Admin approval required)
      [Pipeline] input
      Does the prod environment look OK?
      Proceed or Abort
      Approved by DEV Jenkins
      [Pipeline] }
      [Pipeline] // stage
      [Pipeline] stage
      [Pipeline] { (Copy Artifact from last build)
      [Pipeline] copyArtifacts
      Copied 1 artifact from "NJ ยป deploy/production" build number 22
      [Pipeline] }

      as you can see the original build is #31 but is getting the artifact from #22 (the last success build)

       

      this is the downstream project step

      pipeline {
       agent {
       label 'DEV-DEPLOY01'
       }
       stages {
       stage('Admin approval required') {
       steps {
       input 'Does the prod environment look OK?'
       }
       }
       stage('Copy Artifact from last build') {
       steps { 
       copyArtifacts(projectName: 'NJ/deploy%2Fproduction',filter: "build/nje*.rpm",target: '.')
       }
       }

       

      Did something change? in the previuos version was working smoothly

      Regards

       

       

          [JENKINS-63161] Jenkins pipeline Declarative build step

          Oleg Nenashev added a comment -

          Could you please provide versions of Pipeline plugins you use?

          Oleg Nenashev added a comment - Could you please provide versions of Pipeline plugins you use?

          thanks

          Carmine Fabrizio added a comment - thanks

          Oleg Nenashev added a comment -

          I do not see anything obviously wrong. Maybe Pipeline maintainers could provide more details

          Oleg Nenashev added a comment - I do not see anything obviously wrong. Maybe Pipeline maintainers could provide more details

          ikedam added a comment -

          Copyartifact doesn't copy artifacts from incompleted builds.
          Have "NJ/deploy%2Fproduction" completed when triggering downstream builds?
          I want to see also the configuration of "NJ/deploy%2Fproduction", especially how it triggers downstream builds.

          ikedam added a comment - Copyartifact doesn't copy artifacts from incompleted builds. Have "NJ/deploy%2Fproduction" completed when triggering downstream builds? I want to see also the configuration of "NJ/deploy%2Fproduction", especially how it triggers downstream builds.

          ikedam added a comment -

          No additional information from the reporter.

          ikedam added a comment - No additional information from the reporter.

            carminefabrizio Carmine Fabrizio
            carminefabrizio Carmine Fabrizio
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: