[workflow plugin] set build display name

850 views
Skip to first unread message

Christoph Vogtländer

unread,
Feb 9, 2015, 9:32:05 AM2/9/15
to Jenkinsci Users
Hi,

is it possible to set the current build display name? Changing
env.BUILD_DISPLAY_NAME does not seem to have an effect.

--
Thanks
Christoph


Ginga, Dick

unread,
Feb 9, 2015, 9:46:05 AM2/9/15
to jenkins...@googlegroups.com
build.setDisplayName()
--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c7d43f2440f9a6fee7b14cdb0524a001%40kfpc.de.
For more options, visit https://groups.google.com/d/optout.

Christoph Vogtländer

unread,
Feb 9, 2015, 10:41:07 AM2/9/15
to jenkins...@googlegroups.com

This does not work. "build" is not a property of WorkflowScript. Has
this been implemented in a never version of the workflow plug in? I'm on
Jenkins 1.580.3 LTS with Workflow plug in version 1.2.

groovy.lang.MissingPropertyException: No such property: build for class:
WorkflowScript
at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.getProperty(ScriptBytecodeAdapter.java:454)
at
com.cloudbees.groovy.cps.sandbox.DefaultInvoker.getProperty(DefaultInvoker.java:25)
at
com.cloudbees.groovy.cps.impl.PropertyAccessBlock.rawGet(PropertyAccessBlock.java:17)
at WorkflowScript.run(WorkflowScript:13)
at Unknown.Unknown(Unknown)
at ___cps.transform___(Native Method)
at
com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.get(PropertyishBlock.java:57)
at
com.cloudbees.groovy.cps.LValueBlock$GetAdapter.receive(LValueBlock.java:30)
at
com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.fixName(PropertyishBlock.java:52)
at sun.reflect.GeneratedMethodAccessor1201.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
at
com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
at com.cloudbees.groovy.cps.Next.step(Next.java:58)
at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:145)
at
org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:164)
at
org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:267)
at
org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$000(CpsThreadGroup.java:70)
at
org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:176)
at
org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:174)
at
org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:47)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at
hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:111)
at
jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Ginga, Dick

unread,
Feb 9, 2015, 10:50:28 AM2/9/15
to jenkins...@googlegroups.com
I'm sorry, from a "build" object call that method. "build" is a defined object in the Build Flow plugin I use.
--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/85aa58b9759884d49c12639d8f66cf5e%40kfpc.de.

Jesse Glick

unread,
Feb 25, 2015, 6:23:48 PM2/25/15
to jenkins...@googlegroups.com
On Monday, February 9, 2015 at 9:46:05 AM UTC-5, rginga wrote:
build.setDisplayName()

Ginga, Dick

unread,
Feb 26, 2015, 8:33:09 AM2/26/15
to jenkins...@googlegroups.com

Yup, I need to read closer. I use Build Flow not work flow

--

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 jenkinsci-use...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages