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-70808] Add a specific isRestartable method that accept a sta… #596

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Dohbedoh
Copy link
Contributor

olamy added a commit to jenkinsci/blueocean-plugin that referenced this pull request Mar 16, 2023
Signed-off-by: Olivier Lamy <olamy@apache.org>
olamy added a commit to jenkinsci/blueocean-plugin that referenced this pull request Mar 16, 2023
…d and cached then future usage will be really quick...

add TODO for using jenkinsci/pipeline-model-definition-plugin#596

Signed-off-by: Olivier Lamy <olamy@apache.org>
olamy added a commit to jenkinsci/blueocean-plugin that referenced this pull request Mar 16, 2023
…d and cached then future usage will be really quick...

add TODO for using jenkinsci/pipeline-model-definition-plugin#596

Signed-off-by: Olivier Lamy <olamy@apache.org>
olamy added a commit to jenkinsci/blueocean-plugin that referenced this pull request Mar 16, 2023
…d and cached then future usage will be really quick...

add TODO for using jenkinsci/pipeline-model-definition-plugin#596

Signed-off-by: Olivier Lamy <olamy@apache.org>
for (ModelASTStage s : stages.getStages()) {
if(s.getName().equals(stageName)) {
return !Utils.stageHasStatusOf(s.getName(), execution,
StageStatus.getSkippedForFailure(), StageStatus.getSkippedForUnstable());
Copy link
Member

Choose a reason for hiding this comment

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

So a failed/unstable stage is not restartable? The logic here is unclear. Is this just a copy / adaptation of code elsewhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jglick it is the same logic as isRestartable() but specific to a single stage.

@olamy
Copy link
Member

olamy commented Mar 17, 2023

might need to take into account 821aabd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants