try with ssh-agent
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
ca29051dc2
commit
0a3f6c5fab
|
|
@ -126,18 +126,19 @@ pipeline {
|
|||
ARTIFACTS_KEY = credentials('artifactor-key')
|
||||
}
|
||||
steps {
|
||||
sshagent(['artifactor-key']) {
|
||||
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"
|
||||
sha256 $ZIP_FILE >> SHA256.sig
|
||||
echo ${ARTIFACTS_KEY}
|
||||
rsync -e ${ARTIFACTS_KEY} SHA256.sig artifactor@10.0.0.9:projects/url-shortener/$BRANCH/$VERSION/$UUID/
|
||||
rsync -e ${ARTIFACTS_KEY} $ZIP_FILE artifactor@10.0.0.9:projects/url-shortener/$BRANCH/$VERSION/$UUID/
|
||||
rsync SHA256.sig artifactor@10.0.0.9:projects/url-shortener/$BRANCH/$VERSION/$UUID/
|
||||
rsync $ZIP_FILE artifactor@10.0.0.9:projects/url-shortener/$BRANCH/$VERSION/$UUID/
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Clean up deliverable') {
|
||||
when {
|
||||
expression {
|
||||
|
|
|
|||
Loading…
Reference in New Issue