Created
February 7, 2019 04:26
-
-
Save rezamt/51e008e6caf60d77891b04564c59f47f to your computer and use it in GitHub Desktop.
Jenkins Artifactory Pro - Pipeline Snip
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
rtUpload ( | |
serverId: "Artifactory-1", | |
spec: | |
"""{ | |
"files": [ | |
{ | |
"pattern": "target/*.jar", | |
"target": "my-repo/sub-folder/${BUILD_NUMBER}/" | |
}, | |
{ | |
"pattern" : "target/surefire-reports/TEST-*.xml", | |
"target": "my-repo/sub-folder/${BUILD_NUMBER}/" | |
} | |
] | |
}""" | |
) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment