attempt to use rsync to sync data to artifact repo jail
Gitea Bucky/url-shortener/pipeline/head There was a failure building this commit
Gitea Bucky/url-shortener/pipeline/head There was a failure building this commit
This commit is contained in:
Vendored
+11
@@ -121,6 +121,17 @@ pipeline {
|
||||
archiveArtifacts artifacts: '*.tgz'
|
||||
}
|
||||
}
|
||||
stage('upload to artifact repo') {
|
||||
steps {
|
||||
sh ''' #!/usr/local/bin/bash
|
||||
UUID=$(uuidgen -r)
|
||||
VERSION=$(cat VERSION | cut -d"'" -f2)
|
||||
BRANCH=${BRANCH_NAME}
|
||||
ZIP_FILE="url-shortener_${BRANCH_NAME}_$(cat VERSION | cut -d"'" -f2).tgz"
|
||||
rsync $ZIP_FILE artifactor@10.0.09:projects/url-shortener/$BRANCH/$VERSION/$UUID/
|
||||
'''
|
||||
}
|
||||
}
|
||||
stage('Clean up deliverable') {
|
||||
when {
|
||||
expression {
|
||||
|
||||
Reference in New Issue
Block a user