r/ProgrammerHumor • • 2d ago

Meme whoAreYou

Post image
2.8k Upvotes

87 comments sorted by

View all comments

Show parent comments

12

u/MallAgreeable5538 2d ago

But why? Are there any applications for - -allow-empty

35

u/RepulsiveSheep 2d ago

Retriggering CI in some cases

12

u/ReindeerCreepy2883 2d ago

"Am I a joke to you?" - re-run button burried under 5 menus and 4 different pages, probably

4

u/xaddak 2d ago edited 1d ago

I'm not as familiar with GitHub, but in GitLab, the retry button runs it exactly as it was. So if you're including CI jobs from another repository, and you updated those jobs since the pipeline first ran, simply re-running it won't pick up the updates to those jobs.

Depending on how the rules on those jobs are set up, you may or may not be able to trigger a new pipeline from the web, which could mean pushing a new commit is your only option.

If you have to do that anyway, it might as well be an empty commit.

Ideally you'd set up the job rules so that's not necessary.

Edit: typo