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

Clean-up checkIfStepActive #4814

Merged
merged 9 commits into from
Feb 8, 2024

Conversation

vstarostin
Copy link
Member

@vstarostin vstarostin commented Feb 2, 2024

Changes

Now stage-config contains only new format (CRD-style). This PR removes old code which was used for old format of stage-config.

  • Tests
    - [ ] Documentation

@vstarostin
Copy link
Member Author

/it-go

@vstarostin vstarostin marked this pull request as ready for review February 2, 2024 11:51
@vstarostin vstarostin requested a review from a team as a code owner February 2, 2024 11:51
Comment on lines -84 to -86
log.Entry().Warning("This step is using deprecated format of stage conditions which will be removed in Jan 2024. " +
"To avoid pipeline breakage, please call getDefaults command with --useV1 flag.",
)
Copy link
Member Author

Choose a reason for hiding this comment

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

getDefaults step is used by piper-azure-task for downloading piper-defaults (old format) and stage-config (new format). No need to keep the warning message here since we are not going to move piper-defaults to new format

runSteps = runConfigV1.RunSteps
runStages = runConfigV1.RunStages
} else {
log.Entry().Warning("This step is using deprecated format of stage conditions which will be removed in Jan 2024. " +
Copy link
Member

Choose a reason for hiding this comment

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

Just in time! 😉

cmd/checkIfStepActive.go Show resolved Hide resolved
@vstarostin vstarostin requested review from CCFenner and a team February 2, 2024 15:09
@vstarostin
Copy link
Member Author

/it-go

@vstarostin
Copy link
Member Author

/it-go

@vstarostin
Copy link
Member Author

/it-go

Copy link

sonarcloud bot commented Feb 8, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@vstarostin vstarostin merged commit 4e3fa38 into master Feb 8, 2024
12 checks passed
@vstarostin vstarostin deleted the vstarostin/clean-up-check-if-step-active branch February 8, 2024 09:43
maxatsap pushed a commit to maxatsap/jenkins-library that referenced this pull request Jul 23, 2024
* Clean-up checkIfStepActive

* Mark --useV1 deprecated

* Clean up tests

* Update test

* Add warning message

* Update warning msg
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.

2 participants