I would expect that my method is executed when the branch is not release and when there is not a PR, but it is all the time being executed.
Actual Results
I changed the code by:
not {
anyOf {
branch('release/**')
changeRequest()
}
}
and it seems to work as I was expected with the branch, but "changeRequest" seems to ignore the setting of the CHANGE_NAME I'm doing:
addEnvVar('CHANGE_BRANCH', 'develop')
Jenkins and plugins versions report
Environment
```text Paste the output here ```What Operating System are you using (both controller, and any agents involved in the problem)?
...
Reproduction steps
Hi guys,
I'm creating a pipeline that has a condition like that:
Expected Results
I would expect that my method is executed when the branch is not release and when there is not a PR, but it is all the time being executed.
Actual Results
I changed the code by:
and it seems to work as I was expected with the branch, but "changeRequest" seems to ignore the setting of the CHANGE_NAME I'm doing:
addEnvVar('CHANGE_BRANCH', 'develop')
Is this a bug or am I missing anything?
Anything else?
No response