I retrieve the pipeline script from SCM. See attached screenshot for context.
Now it would be helpful to be able to use the value of (at least) "Stream Codeline" inside my pipeline script.
As far as I understand this is not possible so far?
- relates to
-
JENKINS-72481 Expose Stream as environment variable
-
- Open
-
-
JENKINS-73856 DOC: Document JENKINSFILE_PATH and limitations
-
- Open
-
I just want to - by default - use the same stream for later on synching the source code as the one that the Jenkinsfile originates from.
In my case I even analyze the stream spec to avoid synching of binary assets which are not relevant for the current target platform. So yes, I create a manual workspace like
in my pipeline code. So far I need to explicitly define the streamName inside my Jenkinsfiles which is in most cases redundant.