-
Notifications
You must be signed in to change notification settings - Fork 168
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-57877] - A Test Step to confirm the Builds have been Promoted. #135
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is a test step, it should be in the 'src/test/java' so that it appears in tests only.
If this is intended to be a production code, it should be written and named accordingly
@oleg-nenashev Hi sorry for this implementation. I assume that this looks more like a production code. So this step should be placed before any other promotions i guess?! I'll reuse the PR with minor changes done to it. Will that work? |
@dernDren161 it will not work as is. You are still trying to add the test code to the production codebase which will go to users. If you want to have |
@oleg-nenashev Thanks for the response. What you suggested in the KT session PR was to have a test step before the promotion modules even begin to run? So i understand this PR method won't work and needs changes. So my requests to you:
Thank You! |
|
@oleg-nenashev ok Thank You so Much now it makes sense to me, all this while i thought testing meant testing Jobs from the DSL but no. Also just to reconfirm i guess sth similar to only : (this) is required for now? Like make a module which you think is pipeline compatible, create a Test to check the modules. |
As part of #128 this PR is for spot check/test automation for users to know that the upstream build is promotable/promoted. In the later Phases of this Project this step would probably be replaced by a Job Triggering action to label the Promotion. The expected function name for this step is : addTestBadge
Note: This step Would be seen effective after the introduction of other Promotion Steps so as to test their effectivity.
Link to relevant PR: this
Plan for the Step.
pipeline{
agent any
stages{
stage('Self Promotion'){
steps{
selfPromote(String job,int buildNumber,boolean b){
addTestBadge(String job,int buildNumber)}
}
}
}
Further Information: The step is expected to give a LOGGER message on successful promotion of the previous Jobs.
Also Please Help rectify the code on any technical glitches.
Test Results:
Problem:
Report:
Conclusion:
See JENKINS-57877.
Your checklist for this pull request
Restricted
(docs)CC
@oleg-nenashev @jonbrohauge @bicschneider @MadsNielsen