-
Bug
-
Resolution: Unresolved
-
Minor
-
None
On the last version of plugin 1.1, there is an issue with the "withFolderProperties". This property when is used with the "When" block is returning always false.
I have tested this simple script and always skip the stage. If I remove the "withFolderProperties" it works:
pipeline{
agent any
stages{
stage('Run ADFS'){
when {
expression {
withFolderProperties
}
}
steps
}
}
[JENKINS-61395] The "when" step is not working with the "withFolderProperties" on version 1.1
Description |
Original:
On the last version of plugin 1.1, there is an issue with the "withFolderProperties". This property when is used with the "When" block is returning always false. I have tested this simple script and always skip the stage. If I remove the "withFolderProperties" it works: pipeline{ agent any stages{ stage('Run ADFS'){ when { expression { withFolderProperties { return true; } } } steps{ echo "hello" } {{ }}} {{ }}} {{ }}} |
New:
On the last version of plugin 1.1, there is an issue with the "withFolderProperties". This property when is used with the "When" block is returning always false. I have tested this simple script and always skip the stage. If I remove the "withFolderProperties" it works: pipeline{ agent any stages{ stage('Run ADFS'){ when { expression { withFolderProperties{ return true; } } } steps{ echo "hello" } } } |
Assignee | Original: Miguelángel Fernández [ mig82 ] |