File tree Expand file tree Collapse file tree 1 file changed +3
-19
lines changed
Expand file tree Collapse file tree 1 file changed +3
-19
lines changed Original file line number Diff line number Diff 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\n y\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) {
You can’t perform that action at this time.
0 commit comments