How to read Workspace UUID from build definition in Jenkins Pipeline?
Hi
in my Jenkins pipeline I want to read the Workspace UUID from a builddefinition.
How can I read that attribute inside a pipeline groovy script if I only know the name of the Build definition?
Thanks
|
One answer
In the pipeline script, this should be available as env.team_scm_workspaceUUID after the checkout step is over.
Comments
Christian Ditscher
commented Nov 11 '16, 7:48 a.m.
teamconcert buildType: [value: 'buildWorkspace', buildWorkspace: WORKSPACE] outpuis
This is a known issue with pipeline build, if env is accessed before calling teamconcert, then any environment variables updated by the plugin is not visible. |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.