woodpecker
woodpecker copied to clipboard
CI_STEP_NUMBER is set as 0
Component
server, agent
Describe the bug
Variable CI_STEP_NUMBER is set as 0. I'm using 2.1.1 with Kubernetes backend; all pods are created with 0.
System Info
{"source":"https://github.com/woodpecker-ci/woodpecker","version":"2.1.1"}
Additional context
Validations
- [X] Read the Contributing Guidelines.
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Checked that the bug isn't fixed in the
next
version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use] - [X] Check that this is a concrete bug. For Q&A join our Discord Chat Server or the Matrix room.
Should changed in v2.2.2 ... is it still wrong?
I don't think so, which PR should have fixed this?
The dag related stuff changed things in this
Without trying it, I don't think so. The issue is here that the step is not in the db yet so it does not have a number when env cars are generated. How does dag should fix this?
I'll have a deeper look
yes looked into it ... I'm currently working on it - it's not that easy. I have to change some internal functions etc.
(https://github.com/6543-forks/woodpecker/commit/e375db2f0f06d552d13c9e6321d2de0c54add455)