attempt to use rsync to sync data to artifact repo jail
Gitea Bucky/url-shortener/pipeline/head There was a failure building this commit
Details
Gitea Bucky/url-shortener/pipeline/head There was a failure building this commit
Details
parent
40e3703650
commit
25d94bbfc2
|
|
@ -121,6 +121,17 @@ pipeline {
|
||||||
archiveArtifacts artifacts: '*.tgz'
|
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') {
|
stage('Clean up deliverable') {
|
||||||
when {
|
when {
|
||||||
expression {
|
expression {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue