How to read Workspace UUID from build definition in Jenkins Pipeline?
![](http://jazz.net/_images/myphoto/a5437dfa8c7ead2c6657b3861daba344.jpg)
One answer
![](http://jazz.net/_images/myphoto/a5437dfa8c7ead2c6657b3861daba344.jpg)
In the pipeline script, this should be available as env.team_scm_workspaceUUID after the checkout step is over.
Comments
![](http://jazz.net/_images/myphoto/a5437dfa8c7ead2c6657b3861daba344.jpg)
teamconcert buildType: [value: 'buildWorkspace', buildWorkspace: WORKSPACE]
echo " env.team_scm_workspaceUUID is " + env.team_scm_workspaceUUID
outpuis
RTC Checkout : Fetching Completed [Pipeline] echo env.team_scm_workspaceUUID is null</pre> <br>
![](http://jazz.net/_images/myphoto/6aced3d0d90ad7522bcb7fb0874f1498.jpg)
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.