-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Codebuild Step Failure continues onto next stage in pipeline #63
Comments
Thanks for letting us know about this. I'll attempt to reproduce it and then diagnose the root cause. |
The issue here is that the plugin does not recognize the
|
I am facing same issue with following configuration: stage('package') {
steps {
withCredentials([[$class: 'AmazonWebServicesCredentialsBinding', credentialsId: 'aws']]) {
awsCodeBuild credentialsId: 'CodeBuild', credentialsType: 'jenkins', projectName: 'Package', region: 'us-east-1', sourceControlType: 'project', sourceVersion: "${params.COMMIT_HASH}", envVariables: "[{BUILD_SCRIPT, docker/package/pack.sh}, {JENKINS_BUILD_NUMBER, ${env.BUILD_NUMBER}}, {AWS_SECRET_ACCESS_KEY, ${env.AWS_SECRET_ACCESS_KEY}}, {AWS_ACCESS_KEY_ID, ${env.AWS_ACCESS_KEY_ID}}, {ARTIFACTS_BUCKET, ${env.ARTIFACTS_BUCKET}}, {BRANCH, ${env.BRANCH}}]"
}
}
} Codebuild Plugin Version - 0.17 The build continued even though the codebuild run failed in |
Can you confirm that you're still having problems getting your use case working? |
this has NOTHING to do with this particular issue which remains open, but...anyone know how to access the ENV vars in the CodeBuild buildspec.yml when they are supplied by this plugin? @vedarthk has envVariables listed in his Jenkins Pipeline file, I want to know how to access these vars in the CodeBuild environment...sorry if it derails the convo... |
Hi, If using Even if one of the CodeBuild phases fails in the previous stages the other stages continue So to work around it I have to add:
Is that something that can be fixed? |
Multi-branch pipeline with declarative syntax on Jenkins 2.121 and the latest codebuild plugin 0.24
Relevant Code:
buildspec.yml
Jenkinsfile
Expect:
Pipeline to report a failure and skip the rest of the stages
Actual:
When replacing the codebuild step with a sh 'FAIL' with the same setup, works as expected and the integration stage is skipped due to failure.
The text was updated successfully, but these errors were encountered: