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

master
Adam Townsend 2023-12-18 13:09:52 -08:00
parent 40e3703650
commit 25d94bbfc2
1 changed files with 11 additions and 0 deletions

11
Jenkinsfile vendored
View File

@ -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 {