0
ParentJob
とChildJob
という2つのジョブがあります。 ParentJob
がダウンストリームジョブChildJob
をトリガーします。 ParentJob
からJenkins DSL booleanCondition()がtrueを返してもtrueを返さない
私はChildJob
のパラメータページで
conditionalSteps {
condition {
booleanCondition("RELEASE")
steps {
shell("echo 'Wow !!! condition is parsed as true'")
}
}
などのパラメータを選んでいますChildJob
で
parameters {
predefinedProp('RELEASE','true')
}
として変数を渡しています、私はそれのように正確に来るのを見ることができますtrue
:
まだshell("echo 'Wow !!! condition is parsed as true'")
行が実行されていません。ログでは、私が見ることができます:
09:35:41 Run condition [Boolean condition] enabling prebuild for step [BuilderChain]
09:35:41 [Boolean condition] checking [RELEASE] against [^(1|y|yes|t|true|on|run)$] (origin token: RELEASE)
09:35:41 Run condition [Boolean condition] preventing perform for step [BuilderChain]
09:35:41 Finished: SUCCESS
を私もParentJob
仕事からfalse
、まだ同じ結果として渡してみました。私は間違って何をしていますか?