From 25d94bbfc264b4431eaf0c370ee3f2ce61e00505 Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Mon, 18 Dec 2023 13:09:52 -0800 Subject: [PATCH] attempt to use rsync to sync data to artifact repo jail --- Jenkinsfile | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 {