Skip to content

Skip all stages on first build (before we know parameters)#100

Open
daniel-beck wants to merge 1 commit into
jenkins-infra:masterfrom
daniel-beck:skip-first-build
Open

Skip all stages on first build (before we know parameters)#100
daniel-beck wants to merge 1 commit into
jenkins-infra:masterfrom
daniel-beck:skip-first-build

Conversation

@daniel-beck

Copy link
Copy Markdown
Contributor

Side note: This looks pretty weird due to the very high number of very small stages. It is unclear to me why we're e.g. splitting GPG and code signing cert preparation into separate stages.

@olblak

olblak commented Aug 7, 2020

Copy link
Copy Markdown
Member

It is unclear to me why we're e.g. splitting GPG and code signing cert preparation into separate stages.
I guess it just a different perception of splitting tasks into multiple stages to be honest I don't really care

Is it really needed to put that when condition for every stages instead of only once at the beginning of the Jenkinsfile?
It would be nice to document this "hack" at least once the first time.

@daniel-beck

Copy link
Copy Markdown
Contributor Author

Is it really needed to put that when condition for every stages instead of only once at the beginning of the Jenkinsfile?

It would be much easier and cleaner in Scripted Pipeline 🤷

@timja

timja commented Aug 8, 2020

Copy link
Copy Markdown
Member

Is it really needed to put that when condition for every stages instead of only once at the beginning of the Jenkinsfile?

It would be much easier and cleaner in Scripted Pipeline 🤷

would it be horrible to do?

script {
  if (env.BUILD_NUMBER == "1") {
    return
  }
}

(not sure if that would work)

@daniel-beck

Copy link
Copy Markdown
Contributor Author

Where would you put that? We need to evaluate the pipeline part because that's where the parameters for subsequent runs are defined.

@timja

timja commented Aug 8, 2020

Copy link
Copy Markdown
Member

in the first stage?

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