Open tairov opened 6 years ago
At this time, it's not designed that way. I have that planned for secrets (ref https://github.com/samrocketman/jervis/issues/103) but haven't really thought about environment variables.
One of the challenges being that env
is supported in matrix builds. I suppose I could allow:
env:
global:
- MY_VAR=xyz
From the environment matrix to pass variables. More research would be required to support something like this.
I’ve been using this in production for several years and I plan to implement support for it through https://github.com/samrocketman/jervis/issues/144. This would be launching a shell and getting the same toolchain environment in a Jenkinsfile.
Hi @samrocketman , by any chance is this feature implemented ? :) do you need help with this?
@tairov you're welcome to try if you want. My current focus is multiplatform support with the 2.1 release.
I will plan to do this for 2.2 release
I need to pass some variable from
.jervis.yml
toJenkinsfile
, but can't figure out how to do that. I was trying to set variable inenv
section:But can't access that variable in
Jenkinsfile
Each time it shows
default