woodpecker icon indicating copy to clipboard operation
woodpecker copied to clipboard

CI_STEP_NUMBER is set as 0

Open eliasscosta opened this issue 1 year ago • 6 comments

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

image

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.

eliasscosta avatar Jan 10 '24 17:01 eliasscosta

Should changed in v2.2.2 ... is it still wrong?

6543 avatar Jan 27 '24 15:01 6543

I don't think so, which PR should have fixed this?

qwerty287 avatar Jan 27 '24 17:01 qwerty287

The dag related stuff changed things in this

6543 avatar Jan 27 '24 19:01 6543

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?

qwerty287 avatar Jan 28 '24 06:01 qwerty287

I'll have a deeper look

6543 avatar Jan 31 '24 01:01 6543

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)

6543 avatar Feb 11 '24 10:02 6543