Skip to content

Add CI_PIPELINE_RERUNS environment variable#6588

Merged
6543 merged 6 commits into
woodpecker-ci:mainfrom
M31ancholy:add-env-to-signal-rerun
May 17, 2026
Merged

Add CI_PIPELINE_RERUNS environment variable#6588
6543 merged 6 commits into
woodpecker-ci:mainfrom
M31ancholy:add-env-to-signal-rerun

Conversation

@M31ancholy

Copy link
Copy Markdown
Contributor
  • Add RerunCount field to pipeline model and expose it as CI_PIPELINE_RERUNS environment variable when > 0.
  • Add RerunCount field to Pipeline model
  • Add database migration for rerun_count column
  • Set CI_PIPELINE_RERUNS env var in pipeline metadata
  • Add unit and e2e tests

Closes #5876

Add RerunCount field to pipeline model and expose it as
CI_PIPELINE_RERUNS environment variable when > 0.
- Add RerunCount field to Pipeline model
- Add database migration for rerun_count column
- Set CI_PIPELINE_RERUNS env var in pipeline metadata
- Add unit and e2e tests
Comment thread server/store/datastore/migration/028_add_rerun_count_field.go Outdated
@6543

6543 commented May 17, 2026

Copy link
Copy Markdown
Member

@M31ancholy also wouod be good to resolve conflicts :)

@M31ancholy M31ancholy requested a review from 6543 May 17, 2026 10:24
@M31ancholy

M31ancholy commented May 17, 2026

Copy link
Copy Markdown
Contributor Author

I realized that i might also need to update the docs, let me do this

@M31ancholy

Copy link
Copy Markdown
Contributor Author

I realized that i might also need to update the docs, let me do this

The changes look huge, but actually I only added a single line to explain CI_PIPELINE_RERUNS. All the other changes were caused by GoLand's Markdown formatter.

@6543

6543 commented May 17, 2026

Copy link
Copy Markdown
Member

now you just have to address issues pointed out by the ci ...

@woodpecker-bot

woodpecker-bot commented May 17, 2026

Copy link
Copy Markdown
Contributor

Surge PR preview deployment was removed

@codecov

codecov Bot commented May 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 41.63%. Comparing base (6987ecd) to head (0d48076).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6588      +/-   ##
==========================================
+ Coverage   41.59%   41.63%   +0.03%     
==========================================
  Files         432      432              
  Lines       28781    28785       +4     
==========================================
+ Hits        11972    11985      +13     
+ Misses      15732    15726       -6     
+ Partials     1077     1074       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@6543 6543 merged commit 8905b8f into woodpecker-ci:main May 17, 2026
9 checks passed
@6543 6543 added enhancement improve existing features engine change how the pipeline engine works labels May 17, 2026
@woodpecker-bot woodpecker-bot mentioned this pull request May 17, 2026
1 task
@6543 6543 changed the title feat: add CI_PIPELINE_RERUNS environment variable Add CI_PIPELINE_RERUNS environment variable May 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

engine change how the pipeline engine works enhancement improve existing features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ENV to signal re-run

3 participants