forked from espos/base-files
Refactor Publish Repository stage in Jenkinsfile to update GPG passphrase handling and improve publishing logic
This commit is contained in:
Vendored
+3
-3
@@ -59,19 +59,19 @@ pipeline {
|
||||
|
||||
withCredentials([
|
||||
string(
|
||||
credentialsId: 'aptly_gpg_pass',
|
||||
credentialsId: 'espos-gpg-passphrase',
|
||||
variable: 'GPG_PASS'
|
||||
)
|
||||
]) {
|
||||
|
||||
sh '''
|
||||
ssh ${APTLY_HOST} << EOF
|
||||
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 switch \
|
||||
aptly publish update \
|
||||
-passphrase="$GPG_PASS" \
|
||||
espos-unstable
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user