Hi ,
Please guide me to fix the following issue.
Attempted following groove script to set the status but its throwing error .
upstreamJob = upstreamBuilds.keySet().iterator().next();
lastUpstreamBuild = upstreamJob.getLastBuild();
buildResult = manager.build.result;
if(lastUpstreamBuild.getResult().isBetterThan(buildResult)) {
manager.listener.logger.println("Adjusting build state of upstream job
to build result of this job, being " + buildResult);
lastUpstreamBuild.setResult(buildResult);
}
Error:
====
[workspace] $
/ccbuild/jenkins/tools/hudson.plugins.groovy.GroovyInstallation/Groovy-2.1.6/bin/groovy
/ccbuild/jenkins/jobs/test1/workspace/hudson8022572837284303645.groovy
Caught: groovy.lang.MissingPropertyException: No such property: manager for
class: hudson8022572837284303645
groovy.lang.MissingPropertyException: No such property: manager for class:
hudson8022572837284303645
at hudson8022572837284303645.run(hudson8022572837284303645.groovy:2)
Build step 'Execute Groovy script' marked build as failure
Email was triggered for: Failure
Sending email for trigger: Failure
Thanks,
Prem
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.