-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: NXP-10.x
-
Component/s: Continuous Integration, Demo sites, Nuxeo Scripts
-
Tags:
-
Sprint:DevOps-25
When the job is not triggered by an upstream job, ie by a human, then the branch parameter is not properly initialized:
https://github.com/nuxeo/integration-scripts-priv/blob/master/Jenkinsfiles/deploy-nuxeo-nightly.groovy#L47
https://qa.nuxeo.org/jenkins/job/Private/job/System/job/deploy-nuxeo-nightly/531/console
[Pipeline] End of Pipeline groovy.lang.MissingPropertyException: No such property: branch for class: WorkflowScript at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.getProperty(ScriptBytecodeAdapter.java:454) at org.kohsuke.groovy.sandbox.impl.Checker$4.call(Checker.java:243) at org.kohsuke.groovy.sandbox.GroovyInterceptor.onGetProperty(GroovyInterceptor.java:52) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:308) at org.kohsuke.groovy.sandbox.impl.Checker$4.call(Checker.java:241) at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:238) at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.getProperty(SandboxInvoker.java:28) at com.cloudbees.groovy.cps.impl.PropertyAccessBlock.rawGet(PropertyAccessBlock.java:20) at WorkflowScript.run(WorkflowScript:47)