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

feat(3143): When a event is started from a job in the middle of a stage, execute setup hook before executing that job. #626

Conversation

ThehamzaIftikhar
Copy link
Contributor

Context

Currently if the event is started from a job in the middle of the stage, the build for stage setup is not created

Objective

If the event is started from a job in the middle of the stage, the startFrom gets replaced to the setup job of the same stage

References

screwdriver-cd/screwdriver#3143

License

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@ThehamzaIftikhar ThehamzaIftikhar changed the title feat(3143): If the Event StartFrom job is a non setup stage job, replace the startFrom to the setup of the same stage feat(3143): If the event is started from a non setup stage job, set the job to be started from as the setup of the same stage Aug 8, 2024
@sagar1312 sagar1312 changed the title feat(3143): If the event is started from a non setup stage job, set the job to be started from as the setup of the same stage feat(3143): When a event is started from a job in the middle of a stage, execute setup hook before executing that job. Aug 9, 2024
@@ -1269,6 +1269,26 @@ describe('Event Factory', () => {
});
});

it('should create build for stage setup job, if startFrom is a stage name', () => {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
it('should create build for stage setup job, if startFrom is a stage name', () => {
it('should create build for stage setup job, if startFrom is a job in the middle of a stage', () => {

@sagar1312 sagar1312 merged commit 7fa81d6 into master Aug 9, 2024
2 checks passed
@sagar1312 sagar1312 deleted the hiftikhar01_feat_3413_replace_startFrom_to_stage_setup_if_it_is_a_middle_of_stage_job branch August 9, 2024 15:41
@sd-buildbot
Copy link

🎉 This PR is included in version 29.22.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants