diff --git a/Jenkinsfile b/Jenkinsfile index 4e164f7..711a813 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 {