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

jenkins: add postject pipeline #3114

Closed
wants to merge 1 commit into from

Conversation

RaisinTen
Copy link
Contributor

Fixes: nodejs/postject#62
Signed-off-by: Darshan Sen raisinten@gmail.com

cc @nodejs/single-executable

Fixes: nodejs/postject#62
Signed-off-by: Darshan Sen <raisinten@gmail.com>
@RaisinTen RaisinTen changed the title Add Jenkins CI job for Postject jenkins: add postject pipeline Dec 14, 2022
sh(script: "git clone https://github.com/emscripten-core/emsdk.git", returnStatus: true)
sh(script: "(cd emsdk && ./emsdk install latest)", returnStatus: true)
sh(script: "(cd emsdk && ./emsdk activate latest)", returnStatus: true)
sh(script: "(cd emsdk && source ./emsdk_env.sh && cd .. && npm run build -- --jobs=3)", returnStatus: true)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if this step fails? What returnStatus supposedly does?ß

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Normally, a script which exits with a nonzero status code will cause the step to fail with an exception. If this option is checked, the return value of the step will instead be the status code. You may then compare it to zero, for example.

From: https://www.jenkins.io/doc/pipeline/steps/workflow-durable-task-step/

As we didn't check it in any, we could probably remove it. WDYT @RaisinTen ?

Copy link
Member

@ovflowd ovflowd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code-wise it looks nice!

Comment on lines +43 to +45
sh(script: "git clone https://github.com/emscripten-core/emsdk.git", returnStatus: true)
sh(script: "(cd emsdk && ./emsdk install latest)", returnStatus: true)
sh(script: "(cd emsdk && ./emsdk activate latest)", returnStatus: true)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this take a small enough amount of time that we can do it every time?

@RaisinTen
Copy link
Contributor Author

I've heard from @mhdawson that we don't use pipelines a lot, so we worked on creating this job instead - https://ci.nodejs.org/view/All/job/node-test-postject. See #3126 for more info on that. Closing this in favor of that job.

@RaisinTen RaisinTen closed this Dec 22, 2022
@RaisinTen RaisinTen deleted the add-CI-for-postject branch December 22, 2022 10:57
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.

What to use for CI
5 participants