Skip to content
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

Merged
merged 2 commits into from
Oct 10, 2024
Merged

Conversation

markoburcul
Copy link
Contributor

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

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>
Copy link

changeset-bot bot commented Oct 10, 2024

⚠️ No Changeset found

Latest commit: 90e33d2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Oct 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
status-components ⬜️ Ignored (Inspect) Visit Preview Oct 10, 2024 3:41pm

@status-im-auto
Copy link
Member

status-im-auto commented Oct 10, 2024

Jenkins Builds

Click to see older builds (2)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ ff85810e #1 2024-10-10 11:28:56 ~36 sec chrome 📦zip
e76c02fd #2 2024-10-10 15:32:57 ~15 sec chrome 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ d6be4cc4 #3 2024-10-10 15:35:14 ~34 sec chrome 📦zip
✔️ 512e7f1d #4 2024-10-10 15:44:29 ~29 sec chrome 📦zip

Copy link
Member

@jakubgs jakubgs left a 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.

Comment on lines 32 to 34
dir("${env.WORKSPACE}/apps/connector") {
script {
withEnv(["WORKSPACE=${env.WORKSPACE}/apps/connector"]) { // Override WORKSPACE
Copy link
Member

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?

Copy link
Contributor Author

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>
@markoburcul markoburcul merged commit 6286027 into main Oct 10, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants