Update GPG passphrase credential ID in Publish Repository stage of Jenkinsfile
This commit is contained in:
Vendored
+4
-4
@@ -59,16 +59,16 @@ pipeline {
|
|||||||
|
|
||||||
withCredentials([
|
withCredentials([
|
||||||
string(
|
string(
|
||||||
credentialsId: 'espos-gpg-passphrase',
|
credentialsId: 'aptly_gpg_pass',
|
||||||
variable: 'GPG_PASS'
|
variable: 'GPG_PASS'
|
||||||
)
|
)
|
||||||
]) {
|
]) {
|
||||||
|
|
||||||
sh '''
|
sh '''
|
||||||
ssh ${APTLY_HOST} "GPG_PASS='$GPG_PASS' bash -s" << 'EOF'
|
ssh ${APTLY_HOST} "GPG_PASS='$GPG_PASS' bash -s" << 'EOF'
|
||||||
|
|
||||||
aptly repo add espos-unstable /tmp/*.deb
|
aptly repo add espos-unstable /tmp/*.deb
|
||||||
|
|
||||||
if aptly publish list | grep -q espos-unstable
|
if aptly publish list | grep -q espos-unstable
|
||||||
then
|
then
|
||||||
aptly publish update \
|
aptly publish update \
|
||||||
@@ -81,7 +81,7 @@ pipeline {
|
|||||||
-passphrase="$GPG_PASS" \
|
-passphrase="$GPG_PASS" \
|
||||||
espos-unstable
|
espos-unstable
|
||||||
fi
|
fi
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user