Skip to content

Commit 2925100

Browse files
authored
Merge pull request #331 from tjeske/fix/deployment
fix deployment
2 parents 3d5e430 + bd2290e commit 2925100

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

Jenkinsfile

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -57,23 +57,8 @@ timestamps() {
5757
}
5858
}
5959

60-
if(env.BRANCH_NAME?.toLowerCase() == 'master') {
61-
62-
stage('deploy') {
63-
withCredentials([file(credentialsId: 'secret-subkeys.asc', variable: 'KEYRING')]) {
64-
sh '''
65-
rm -r xpect-local-maven-repository
66-
gpg --batch --import "${KEYRING}"
67-
for fpr in $(gpg --list-keys --with-colons | awk -F: '/fpr:/ {print $10}' | sort -u);
68-
do
69-
echo -e "5\ny\n" | gpg --batch --command-fd 0 --expert --edit-key $fpr trust;
70-
done
71-
'''
72-
sh "${mvnHome}/bin/mvn -P!tests -P maven-publish -Dtarget-platform=eclipse_2023_03-xtext_2_31_0 ${mvnParams} clean deploy"
73-
}
74-
}
75-
76-
} else if(env.BRANCH_NAME?.toLowerCase()?.startsWith('release_')) {
60+
if(env.BRANCH_NAME?.toLowerCase() == 'master' ||
61+
env.BRANCH_NAME?.toLowerCase()?.startsWith('release_')) {
7762
stage('deploy') {
7863
withCredentials([file(credentialsId: 'secret-subkeys.asc', variable: 'KEYRING')]) {
7964
sh '''
@@ -86,8 +71,7 @@ timestamps() {
8671
'''
8772
sh "${mvnHome}/bin/mvn -P!tests -P!xtext-examples -P maven-publish -Dtarget-platform=eclipse_2023_03-xtext_2_31_0 ${mvnParams} clean deploy"
8873
}
89-
90-
}
74+
}
9175
}
9276
}
9377
} catch(e) {

0 commit comments

Comments
 (0)