Skip to content

Instantly share code, notes, and snippets.

@rezamt
Created February 7, 2019 04:26
Show Gist options
  • Save rezamt/51e008e6caf60d77891b04564c59f47f to your computer and use it in GitHub Desktop.
Save rezamt/51e008e6caf60d77891b04564c59f47f to your computer and use it in GitHub Desktop.
Jenkins Artifactory Pro - Pipeline Snip
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