Skip to content

Job continues to run on password expiration exception #270

@Constantin07

Description

@Constantin07

Version report

Jenkins and plugins versions report:

Jenkins 2.277.1
stashNotifier 1.20
  • What Operating System are you using (both controller, and any agents involved in the problem)?
Linux Alpine 3.12.0

Reproduction steps

  • Have the password expired for credentials used to authenticate to Bitbucket Server
  • Send a notification in pipeline:
pipeline {
...
  stages {
    stage('Test') {
      ...
      mlaNotifyBitbucket 'SUCCESSFUL'
    }
  }
...
}

Results

Expected result:

The job should fail if cannot successfully send notification to Bitbucket Server

Actual result:

It continues to run with next stage as there no error happened at all:

[Pipeline] notifyBitbucket
Notifying Bitbucket at "https://some-bitbucket-server-here"
Failed to notify Bitbucket for commit b3e025790f8e28cc87334dfb341c1f085c1da6f6 ({"errors":[{"context":null,"message":"Authentication failed. Please check your credentials and try again.","exceptionName":"com.atlassian.bitbucket.auth.ExpiredPasswordAuthenticationException"}]})
[Pipeline] }
[Pipeline] // stage
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions