diff --git a/ci/Jenkinsfile b/ci/Jenkinsfile index 286f108..8315aa6 100644 --- a/ci/Jenkinsfile +++ b/ci/Jenkinsfile @@ -40,7 +40,7 @@ try { } stage('Sign') { - if (BRANCH_NAME == 'main') { + when(BRANCH_NAME == 'main') { withEnvironment([ "GNUPGHOME=${env.WORKSPACE_TMP}/gnupg", ]) { @@ -57,14 +57,6 @@ try { sh '. ci/sign.sh' } } - } else { - catchError( - catchInterruptions: false, - buildResult: null, - stageResult: 'NOT_BUILT', - ) { - error('skip') - } } }