Skip to content

jenkins: add postject pipeline - #3114

Closed
RaisinTen wants to merge 1 commit into
nodejs:mainfrom
RaisinTen:add-CI-for-postject
Closed

RaisinTen wants to merge 1 commit into
nodejs:mainfrom
RaisinTen:add-CI-for-postject

Conversation

@RaisinTen

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
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 ?

@ovflowd ovflowd left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
Member 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