File tree Expand file tree Collapse file tree 7 files changed +11
-47
lines changed
eclipse.platform.releng.tychoeclipsebuilder Expand file tree Collapse file tree 7 files changed +11
-47
lines changed Original file line number Diff line number Diff line change 97
97
}
98
98
}
99
99
}
100
- stage('Load PGP keys'){
101
- environment {
102
- KEYRING = credentials('secret-subkeys-releng.asc')
103
- KEYRING_PASSPHRASE = credentials('secret-subkeys-releng.asc-passphrase')
104
- }
105
- steps {
106
- dir("${CJE_ROOT}/mbscripts") {
107
- sh '''
108
- ./mb011_loadPGPKeys.sh 2>&1 | tee $logDir/mb011_loadPGPKeys.sh.log
109
- if [[ ${PIPESTATUS[0]} -ne 0 ]]
110
- then
111
- echo "Failed in Load PGP keys"
112
- exit 1
113
- fi
114
- '''
115
- }
116
- }
117
- }
118
100
stage('Export environment variables stage 1'){
119
101
steps {
120
102
script {
Original file line number Diff line number Diff line change @@ -105,25 +105,6 @@ spec:
105
105
}
106
106
}
107
107
}
108
- stage('Load PGP keys'){
109
- environment {
110
- KEYRING = credentials('secret-subkeys-releng.asc')
111
- KEYRING_PASSPHRASE = credentials('secret-subkeys-releng.asc-passphrase')
112
- }
113
- steps {
114
- container('jnlp') {
115
- sh \'\'\'
116
- cd ${WORKSPACE}/eclipse.platform.releng.aggregator/eclipse.platform.releng.aggregator/cje-production/mbscripts
117
- ./mb011_loadPGPKeys.sh 2>&1 | tee $logDir/mb011_loadPGPKeys.sh.log
118
- if [[ ${PIPESTATUS[0]} -ne 0 ]]
119
- then
120
- echo "Failed in Load PGP keys"
121
- exit 1
122
- fi
123
- \'\'\'
124
- }
125
- }
126
- }
127
108
stage('Export environment variables stage 1'){
128
109
steps {
129
110
container('jnlp') {
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ mvn -f eclipse.platform.releng.tychoeclipsebuilder/${PATCH_OR_BRANCH_LABEL}/pom.
39
39
-Dtycho.debug.artifactcomparator \
40
40
-Dtycho.localArtifacts=ignore \
41
41
-Dcbi.jarsigner.continueOnFail=true \
42
+ -Dtycho.pgp.signer=bc -Dtycho.pgp.signer.bc.secretKeys=" ${KEYRING} " \
42
43
-Djgit.dirtyWorkingTree=error \
43
44
-Dmaven.repo.local=$LOCAL_REPO \
44
45
-Djava.io.tmpdir=$CJE_ROOT /$TMP_DIR \
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ mvn clean verify -DskipTests=true ${MVN_ARGS} \
36
36
-Dtycho.debug.artifactcomparator \
37
37
-Dtycho.localArtifacts=ignore \
38
38
-Dcbi.jarsigner.continueOnFail=true \
39
+ -Dtycho.pgp.signer=bc -Dtycho.pgp.signer.bc.secretKeys=" ${KEYRING} " \
39
40
-Djgit.dirtyWorkingTree=error \
40
41
-Dmaven.repo.local=$LOCAL_REPO \
41
42
-Djava.io.tmpdir=$CJE_ROOT /$TMP_DIR \
Original file line number Diff line number Diff line change @@ -42,6 +42,15 @@ echo "[DEBUG] Producing GPG signatures starting."
42
42
set -e
43
43
if [ ! -z " ${KEYRING_PASSPHRASE} " ]
44
44
then
45
+ # import gpg keys in fresh gpg-homedir
46
+ gpg_home=" ${WORKSPACE} /tools/${client} /gpg/"
47
+ mkdir -p ${gpg_home}
48
+ alias gpg=' gpg --homedir "${gpg_home}"'
49
+ gpg --batch --import " ${KEYRING} "
50
+ for fpr in $( gpg --list-keys --with-colons | awk -F: ' /fpr:/ {print $10}' | sort -u) ; do
51
+ echo -e " 5\ny\n" | gpg --batch --command-fd 0 --expert --edit-key " ${fpr} " trust;
52
+ done
53
+
45
54
gpg --detach-sign --armor --output ${allCheckSumsSHA512} .asc --batch --pinentry-mode loopback --passphrase-fd 0 ${allCheckSumsSHA512} <<< " ${KEYRING_PASSPHRASE}"
46
55
else
47
56
# We don't treat as ERROR since would be normal in a "local build".
Original file line number Diff line number Diff line change 42
42
<artifactId >tycho-gpg-plugin</artifactId >
43
43
<version >${tycho.version} </version >
44
44
<configuration >
45
- <signer >bc</signer >
46
- <keyname >b6d3ab9bcc641282</keyname >
47
45
<skipIfJarsigned >false</skipIfJarsigned >
48
46
<skipIfJarsignedAndAnchored >true</skipIfJarsignedAndAnchored >
49
47
<pgpKeyBehavior >skip</pgpKeyBehavior >
You can’t perform that action at this time.
0 commit comments