Using the below sample code:
node { println "[currentBuild] ${currentBuild.result}" archiveArtifacts "packages/*.*" println "[currentBuild] ${currentBuild.result}" }
You get the output,
[Pipeline] node Running on master [Pipeline] { [Pipeline] echo [currentBuild] null [Pipeline] step Archiving artifacts [Pipeline] echo [currentBuild] FAILURE [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Finished: FAILURE
Without manual printouts about where something is failing, you get no information about what is failing where, nor why. For something as pivotal as the artifact archiver, part of core Jenkins, having this behaviour is really, really poor and has already cost us days trying to figure out what's going on in our very big, very time consuming build.
- duplicates
-
JENKINS-38005 Using archiveArtifacts with a non-matching pattern silently fails the build
-
- Resolved
-
[JENKINS-40538] With Pipeline, "archive" sets build status to failure, on empty, but doesn't report / log anything
Description |
Original:
Using the below sample code: {code:groovy} def func1() { println "[currentBuild] ${currentBuild.result}" archiveArtifacts "packages/*.*" println "[currentBuild] ${currentBuild.result}" } def func2() { println "[currentBuild] ${currentBuild.result}" } node { pl = parallel( func1: { func1() }, func2: { func2() } ) println "pl: $pl" } {code} You get the output, {noformat} [Pipeline] node Running on master in /Users/Shared/Jenkins/Home/jobs/teststash/workspace [Pipeline] { [Pipeline] parallel [Pipeline] [func1] { (Branch: func1) [Pipeline] [func2] { (Branch: func2) [Pipeline] [func1] echo [func1] [currentBuild] null [Pipeline] [func1] step [func1] Archiving artifacts [Pipeline] [func2] echo [func2] [currentBuild] null [Pipeline] [func2] } [Pipeline] [func1] echo [func1] [currentBuild] FAILURE [Pipeline] [func1] } [Pipeline] // parallel [Pipeline] echo pl: [func1:null, func2:null] [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Finished: FAILURE {noformat} And in the pipeline steps, !Screen Shot 2016-12-19 at 13.37.20.png|thumbnail! Without manual printouts about where something is failing, you get no information about what is failing where, nor why. For something as pivotal as the artifact archiver, part of core Jenkins, having this behaviour is really, really poor and has already cost us days trying to figure out what's going on in our very big, very time consuming build. |
New:
Using the below sample code: {code:java} def func1() { println "[currentBuild] ${currentBuild.result}" archiveArtifacts "packages/*.*" println "[currentBuild] ${currentBuild.result}" } def func2() { println "[currentBuild] ${currentBuild.result}" } node { pl = parallel( func1: { func1() }, func2: { func2() } ) println "pl: $pl" } {code} You get the output, {noformat} [Pipeline] node Running on master in /Users/Shared/Jenkins/Home/jobs/teststash/workspace [Pipeline] { [Pipeline] parallel [Pipeline] [func1] { (Branch: func1) [Pipeline] [func2] { (Branch: func2) [Pipeline] [func1] echo [func1] [currentBuild] null [Pipeline] [func1] step [func1] Archiving artifacts [Pipeline] [func2] echo [func2] [currentBuild] null [Pipeline] [func2] } [Pipeline] [func1] echo [func1] [currentBuild] FAILURE [Pipeline] [func1] } [Pipeline] // parallel [Pipeline] echo pl: [func1:null, func2:null] [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Finished: FAILURE {noformat} And in the pipeline steps, !Screen Shot 2016-12-19 at 13.37.20.png|thumbnail! Without manual printouts about where something is failing, you get no information about what is failing where, nor why. For something as pivotal as the artifact archiver, part of core Jenkins, having this behaviour is really, really poor and has already cost us days trying to figure out what's going on in our very big, very time consuming build. |
Description |
Original:
Using the below sample code: {code:java} def func1() { println "[currentBuild] ${currentBuild.result}" archiveArtifacts "packages/*.*" println "[currentBuild] ${currentBuild.result}" } def func2() { println "[currentBuild] ${currentBuild.result}" } node { pl = parallel( func1: { func1() }, func2: { func2() } ) println "pl: $pl" } {code} You get the output, {noformat} [Pipeline] node Running on master in /Users/Shared/Jenkins/Home/jobs/teststash/workspace [Pipeline] { [Pipeline] parallel [Pipeline] [func1] { (Branch: func1) [Pipeline] [func2] { (Branch: func2) [Pipeline] [func1] echo [func1] [currentBuild] null [Pipeline] [func1] step [func1] Archiving artifacts [Pipeline] [func2] echo [func2] [currentBuild] null [Pipeline] [func2] } [Pipeline] [func1] echo [func1] [currentBuild] FAILURE [Pipeline] [func1] } [Pipeline] // parallel [Pipeline] echo pl: [func1:null, func2:null] [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Finished: FAILURE {noformat} And in the pipeline steps, !Screen Shot 2016-12-19 at 13.37.20.png|thumbnail! Without manual printouts about where something is failing, you get no information about what is failing where, nor why. For something as pivotal as the artifact archiver, part of core Jenkins, having this behaviour is really, really poor and has already cost us days trying to figure out what's going on in our very big, very time consuming build. |
New:
Using the below sample code: {code:java} node { println "[currentBuild] ${currentBuild.result}" archiveArtifacts "packages/*.*" println "[currentBuild] ${currentBuild.result}" } {code} You get the output, {noformat} [Pipeline] node Running on master in /Users/Shared/Jenkins/Home/jobs/teststash/workspace [Pipeline] { [Pipeline] echo [currentBuild] null [Pipeline] step Archiving artifacts [Pipeline] echo [currentBuild] FAILURE [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Finished: FAILURE {noformat} And in the pipeline steps, !Screen Shot 2016-12-19 at 13.37.20.png|thumbnail! Without manual printouts about where something is failing, you get no information about what is failing where, nor why. For something as pivotal as the artifact archiver, part of core Jenkins, having this behaviour is really, really poor and has already cost us days trying to figure out what's going on in our very big, very time consuming build. |
Attachment | New: Screen Shot 2016-12-19 at 22.56.33.png [ 35225 ] |
Description |
Original:
Using the below sample code: {code:java} node { println "[currentBuild] ${currentBuild.result}" archiveArtifacts "packages/*.*" println "[currentBuild] ${currentBuild.result}" } {code} You get the output, {noformat} [Pipeline] node Running on master in /Users/Shared/Jenkins/Home/jobs/teststash/workspace [Pipeline] { [Pipeline] echo [currentBuild] null [Pipeline] step Archiving artifacts [Pipeline] echo [currentBuild] FAILURE [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Finished: FAILURE {noformat} And in the pipeline steps, !Screen Shot 2016-12-19 at 13.37.20.png|thumbnail! Without manual printouts about where something is failing, you get no information about what is failing where, nor why. For something as pivotal as the artifact archiver, part of core Jenkins, having this behaviour is really, really poor and has already cost us days trying to figure out what's going on in our very big, very time consuming build. |
New:
Using the below sample code: {code:java} node { println "[currentBuild] ${currentBuild.result}" archiveArtifacts "packages/*.*" println "[currentBuild] ${currentBuild.result}" } {code} You get the output, {noformat} [Pipeline] node Running on master [Pipeline] { [Pipeline] echo [currentBuild] null [Pipeline] step Archiving artifacts [Pipeline] echo [currentBuild] FAILURE [Pipeline] } [Pipeline] // node [Pipeline] End of Pipeline Finished: FAILURE {noformat} And in the pipeline steps, !Screen Shot 2016-12-19 at 22.56.33.png|thumbnail! Without manual printouts about where something is failing, you get no information about what is failing where, nor why. For something as pivotal as the artifact archiver, part of core Jenkins, having this behaviour is really, really poor and has already cost us days trying to figure out what's going on in our very big, very time consuming build. |
Attachment | Original: Screen Shot 2016-12-19 at 22.56.33.png [ 35225 ] |
Attachment | Original: Screen Shot 2016-12-19 at 13.37.20.png [ 35222 ] |
Attachment | New: Screen Shot 2016-12-19 at 22.56.33.png [ 35226 ] |
Component/s | New: pipeline [ 21692 ] | |
Component/s | Original: core [ 15593 ] |
Link |
New:
This issue duplicates |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Closed [ 6 ] |