Update GPG passphrase credential ID in Publish Repository stage of Jenkinsfile

This commit is contained in:
2026-07-16 11:34:22 +02:00
parent d4dc60a194
commit 525a2a0f47
Vendored
+4 -4
View File
@@ -59,16 +59,16 @@ pipeline {
withCredentials([
string(
credentialsId: 'espos-gpg-passphrase',
credentialsId: 'aptly_gpg_pass',
variable: 'GPG_PASS'
)
]) {
sh '''
ssh ${APTLY_HOST} "GPG_PASS='$GPG_PASS' bash -s" << 'EOF'
aptly repo add espos-unstable /tmp/*.deb
if aptly publish list | grep -q espos-unstable
then
aptly publish update \
@@ -81,7 +81,7 @@ pipeline {
-passphrase="$GPG_PASS" \
espos-unstable
fi
EOF
'''
}