-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jenkinsfile: fix paths for all steps #597
Conversation
Since nix shell function from jenkins librarz uses WORKSPACE env variable to find shell.nix we need to override it for steps using nix shell. For all of the steps I'm using dir directive to change cwd to the apps/connector. Referenced issue: #590 Signed-off-by: markoburcul <marko@status.im>
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
Jenkins BuildsClick to see older builds (2)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't want to block you from fixing stuff, so I'm approving, but I would just fix this in status-jenkins-lib
if I was you.
apps/connector/Jenkinsfile
Outdated
dir("${env.WORKSPACE}/apps/connector") { | ||
script { | ||
withEnv(["WORKSPACE=${env.WORKSPACE}/apps/connector"]) { // Override WORKSPACE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's way too overcomplicated. Wouldn't it be better to just add support for an entrypoint
argument for nix.shell()
and other commands in status-jenkins-lib
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with that, will fix it right away
Use newest jenkins lib tag which adds the entryPoint as an argument to the nix shell function. Referenced issue: #590 Signed-off-by: markoburcul <marko@status.im>
f1bcde6
to
90e33d2
Compare
Since nix shell function from jenkins librarz uses WORKSPACE env variable to find shell.nix we need to override it for steps using nix shell. For all of the steps I'm using dir directive to change cwd to the apps/connector.
Referenced issue: #590