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

Add new version of nightly build pipeline #24

Merged
merged 1 commit into from
May 29, 2024
Merged

Add new version of nightly build pipeline #24

merged 1 commit into from
May 29, 2024

Conversation

mkaapu
Copy link
Contributor

@mkaapu mkaapu commented May 24, 2024

This version adds parallel stages to visualize target testing.

This version adds parallel stages to visualize target testing.

Signed-off-by: Marko Kaapu <[email protected]>
steps {
ws('workspace/ghaf-pipeline/ghaf') {
sh '''
PROVENANCE_TIMESTAMP_BEGIN=$(<TS_BEGIN_${GHAF_TARGET})
Copy link
Contributor

Choose a reason for hiding this comment

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

There seems to be quite some duplication in here, and things that we should not set in jenkins. Any change we could move most of this (at least all the timestamp setting business) into a script wrapping the provenance run?

Copy link
Contributor

Choose a reason for hiding this comment

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

So far practise seems to have been to avoid scripting (to keep declarative)... Of course when we start trapping erros and settings statuses, we cant avoid that

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not saying we should script more in groovy for it to emit more boilerplate, yes. Ideally, the groovy script is as dumb as possible, so it still stays easy to invoke the commands locally.

I assume we set PROVENANCE_{EXTERNAL,INTERNAL}_PARAMS to be picked up by sbomnix? Can this be documented?

And maybe emitting timestamp files during startup, and on completion could be made part of sbomnix itself?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

The timestamps should be the start and finish times of the nix build, so generating them in the provenance script would be inaccurate.

This params generation could be in some wrapper, but only if the jenkins env variables are available for that script.

Copy link
Contributor

@mnokka-unikie mnokka-unikie left a comment

Choose a reason for hiding this comment

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

go with this one. Later we can start script/function logic.

@mkaapu mkaapu requested review from joinemm May 27, 2024 09:17
@mkaapu mkaapu merged commit 8b55f26 into main May 29, 2024
1 check passed
@mkaapu mkaapu deleted the pr-nightly-build branch May 29, 2024 09:59
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.

5 participants