Created
September 9, 2024 15:39
-
-
Save Dev1an/fa0277aec63d872dafed1c5f6f5deae0 to your computer and use it in GitHub Desktop.
Jenkins - pass files across jobs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def buildResult = build job: "/PackagePublishers/ArtifactPassingChild", propagate: true | |
println buildResult.number | |
copyArtifacts(projectName: '/PackagePublishers/ArtifactPassingChild', selector: specific("${buildResult.number}")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sh "mkdir one && echo 'Hello world' > one/textfile.txt" | |
sh "ls" | |
archiveArtifacts artifacts: 'one/textfile.txt', fingerprint: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment