You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I checked in the database and indeed, the build pipeline's ID is 139.
System Info
❯ curl https://cicd.efertone.me/version
{"source":"https://github.com/woodpecker-ci/woodpecker","version":"2.4.1"}
❯ docker stack ps woodpecker
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
mszm6rloe7h1 woodpecker_agent.1 woodpeckerci/woodpecker-agent:v2.4.1 xxxxxxxxxxxxxxxxxxxxxxxxxx Running Running 5 hours ago
na6d65ec7q9n woodpecker_agent.2 woodpeckerci/woodpecker-agent:v2.4.1 xxxxxxxxxxxxxxxxxxxxxxxxxx Running Running 5 hours ago
ku3ox1z2gt6v woodpecker_agent.3 woodpeckerci/woodpecker-agent:v2.4.1 xxxxxxxxxxxxxxxxxxxxxxxxxx Running Running 5 hours ago
xoszbiy72sn4 woodpecker_server.1 woodpeckerci/woodpecker-server:v2.4.1 xxxxxxxxxxxxxxxxxxxxxxxxxx Running Running 11 hours ago
so0d47yoxc5t \_ woodpecker_server.1 woodpeckerci/woodpecker-server:v2.4.1 xxxxxxxxxxxxxxxxxxxxxxxxxx Shutdown Shutdown 11 hours ago
9bwop7cusl6v \_ woodpecker_server.1 woodpeckerci/woodpecker-server:v2.4.1 xxxxxxxxxxxxxxxxxxxxxxxxxx Shutdown Shutdown 12 hours ago
### Additional context
- Demo repo: https://git.efertone.me/efertone/woodpecker-experiment
- Build pipeline: https://cicd.efertone.me/repos/16/pipeline/2
- Deploy pipeline: https://cicd.efertone.me/repos/16/pipeline/3
### Validations
- [X] Read the [docs](https://woodpecker-ci.org/docs/intro).
- [X] Check that there isn't [already an issue](https://github.com/woodpecker-ci/woodpecker/issues) 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]
The text was updated successfully, but these errors were encountered:
Quick checked if it can be easily fixed with just swapping a value, but sadly the parent's pipeline_number is not saved.
cicd-efertone-me=# select * from pipelines where "pipeline_id" = 140;
-[ RECORD 1 ]--------+-------------------------------------------------------------------------------------------------------
pipeline_id | 140
pipeline_repo_id | 16
pipeline_number | 3
pipeline_author | efertone
pipeline_parent | 139
So it seems that data has to be stored as an extra field :( (or query the info every time, I don't know how much stress it would add to a crowded instance, mine is not crowded at all)
Component
server
Describe the bug
Based on the documentation:
My understanding is that the
CI_PIPELINE_PARENT
should be theCI_PIPELINE_NUMBER
of the parent pipeline.In reality it references to the
id
of the pipeline and not the actual number.Expected Behaviour
The
CI_PIPELINE_PARENT
value is2
in thedeploy
pipeline triggered from the pipeline withCI_PIPELINE_NUMBER=2
.Why it's an issue?
In my notifications (Matrix channel for example), I want to see clearly what was the build that was deployed. Now it's a bit messy as I can see:
and then
Example
Output
I checked in the database and indeed, the
build
pipeline's ID is139
.System Info
The text was updated successfully, but these errors were encountered: