\n\nAnd here is the outcome on BitBucket:\n\u003Cimg width=\"479\" height=\"182\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/11c2a65d-cbf2-4162-9805-3d035bdac04e\" />\n\n\n### Steps to reproduce\n\n1. Run Woodpecker with BitBucket Cloud forge\n2. Create a pipeline that uses a matrix\n3. Let the pipeline finish on Woodpecker\n4. Observe the build statuses on the commit in BitBucket\n\n### Expected behavior\n\nBoth pipelines should show completed.\n\n### System Info\n\n```shell\nWoodpecker version: v3.8.0\n```\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [x] Read the [docs](https://woodpecker-ci.org/docs/intro).\n- [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.\n- [x] Checked that the bug isn't fixed in the `next` version already [https://woodpecker-ci.org/versions]",[3074],{"name":3019,"color":3020},5338,"Build status not completing on matrix pipelines with BitBucket","2025-07-17T18:03:12Z","https://github.com/woodpecker-ci/woodpecker/issues/5338",0.73607874,{"description":3081,"labels":3082,"number":3084,"owner":3025,"repository":3026,"state":3085,"title":3086,"updated_at":3087,"url":3088,"score":3089},"### Component\n\nserver, agent\n\n### Describe the bug\n\nThe pipeline ID of the `CI_PIPELINE_URL` environment variable is always zero and not the actual pipeline ID. I don't know if the bug is in the server or in the agent.\n\n### System Info\n\n```shell\nVersion 2.0.0. Agent and server running on the same host and started manually.\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Read the [Contributing Guidelines](https://github.com/woodpecker-ci/woodpecker/blob/main/CONTRIBUTING.md).\n- [X] Read the [docs](https://woodpecker-ci.org/docs/intro).\n- [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.\n- [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]\n- [X] Check that this is a concrete bug. For Q&A join our [Discord Chat Server](https://discord.gg/fcMQqSMXJy) or the [Matrix room](https://matrix.to/#/#woodpecker:matrix.org).",[3083],{"name":3019,"color":3020},2906,"closed","$CI_PIPELINE_URL always \u003Cbase_url>/repos/\u003Crepo_id>/pipeline/0","2023-12-04T15:47:20Z","https://github.com/woodpecker-ci/woodpecker/issues/2906",0.6888337,{"description":3091,"labels":3092,"number":3094,"owner":3025,"repository":3026,"state":3085,"title":3095,"updated_at":3096,"url":3097,"score":3098},"### Component\r\n\r\nserver, agent, web-ui\r\n\r\n### Describe the bug\r\n\r\nI have a very simple pipeline:\r\n\r\n```yaml\r\npipeline:\r\n validate:\r\n commands:\r\n - docker-compose config --quiet\r\n environment:\r\n GROUP_ID: 1000\r\n USER_ID: 1000\r\n group: verify\r\n image: docker.io/docker/compose:alpine-1.29.2\r\n```\r\n\r\nThis configuration prevents `Woodpecker CI` to trigger the pipeline.\r\n\r\nThe fix is to enclose the values from `environment` in double quotes.\r\n\r\n> The pipeline just tests that the `Docker Compose` manifest/definition file is correct, so any valid `docker-compose.yaml` file can be used to test this.\r\n\r\n### System Info\r\n\r\n```shell\r\nCodeberg's Woodpecker CI\r\n```\r\n\r\n\r\n### Additional context\r\n\r\nI usually test all the steps that `Woodpecker CI` will execute locally using a multi-stage `Dockerfile`. I understand that while it's not exactly the same (for all purposes), it does work (for me) for almost 95% of the cases.\r\n\r\nSo I execute this in my local PC using `Docker Compose` and it doesn't fail — either using the integers or double quoted values. That's why I'm inclined to think it could be an issue with `Woodpecker CI` and not the `docker.io/docker/compose:alpine-1.29.2` image itself.\r\n\r\n\r\n### Validations\r\n\r\n- [X] Read the [Contributing Guidelines](https://github.com/woodpecker-ci/woodpecker/blob/master/CONTRIBUTING.md).\r\n- [X] Read the [docs](https://woodpecker-ci.org/docs/intro).\r\n- [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.\r\n- [X] Check that this is a concrete bug. For Q&A join our [Discord Chat Server](https://discord.gg/fcMQqSMXJy) or the [Matrix room](https://matrix.to/#/#woodpecker:matrix.org).",[3093],{"name":3019,"color":3020},1041,"Certain environment variables (and their values) prevent pipelines to be triggered","2023-06-04T11:57:59Z","https://github.com/woodpecker-ci/woodpecker/issues/1041",0.6904947,{"description":3100,"labels":3101,"number":3106,"owner":3025,"repository":3026,"state":3085,"title":3107,"updated_at":3108,"url":3109,"score":3110},"### Component\n\nserver\n\n### Describe the bug\n\nWhen pipeline/step is canceled automatically it will result in failed state with error:\r\n```\r\nGet \"http://%2Fvar%2Frun%2Fdocker.sock/v1.41/containers/wp_0_8440940097353797125_clone_1/json\": context canceled\r\n```\r\n\r\nInstead on this error step should be set to state canceled and so is pipeline\n\n### System Info\n\n```shell\n{\"source\":\"https://github.com/woodpecker-ci/woodpecker\",\"version\":\"next-ee9269d6\"}\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Read the [Contributing Guidelines](https://github.com/woodpecker-ci/woodpecker/blob/master/CONTRIBUTING.md).\n- [X] Read the [docs](https://woodpecker-ci.org/docs/intro).\n- [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.\n- [X] Check that this is a concrete bug. For Q&A join our [Discord Chat Server](https://discord.gg/fcMQqSMXJy) or the [Matrix room](https://matrix.to/#/#woodpecker:matrix.org).",[3102,3103],{"name":3019,"color":3020},{"name":3104,"color":3105},"duplicate","9D1C99",1391,"Canceled pipelines/steps should have correct status","2022-11-06T02:54:38Z","https://github.com/woodpecker-ci/woodpecker/issues/1391",0.7006055,{"description":3112,"labels":3113,"number":3114,"owner":3025,"repository":3026,"state":3085,"title":3115,"updated_at":3116,"url":3117,"score":3118},"### Component\n\nserver\n\n### Describe the bug\n\nWhen a started pipeline is canceled, the pipeline status is always `Failed`\r\n\r\nIt seems that the pipeline status is always based on the the step state\r\n\r\nWhen a step is canceled, the step state reported back by the killed is always failed.\r\n\r\nThis is caused by \r\n\r\nhttps://github.com/woodpecker-ci/woodpecker/blob/1786c0554a3f347924a0a1d36c8b2684eb45ac86/agent/runner.go#L365\r\n\r\nthat is called even if cancel is set\r\n\r\nI think `Done` should just be called if cancel is not set\r\n\r\n```go\r\nif canceled.IsNotSet() {\r\n err = r.client.Done(ctxmeta, work.ID, state)\r\n}\r\n```\r\n\r\nAlso the step state has to be overwritten\r\n\r\n```go\r\nstepState := rpc.State{\r\n Step: state.Pipeline.Step.Alias,\r\n Exited: state.Process.Exited,\r\n ExitCode: state.Process.ExitCode,\r\n Started: time.Now().Unix(), // TODO do not do this\r\n Finished: time.Now().Unix(),\r\n}\r\nif canceled.IsSet() {\r\n stepState.ExitCode = 137\r\n stepState.Error = \"Step canceled\"\r\n} else if state.Process.Error != nil {\r\n stepState.Error = state.Process.Error.Error()\r\n}\r\n\r\n```\r\n\r\nsince the error reported seems to be always caused by the step getting killed\r\n\r\n\n\n### System Info\n\n```shell\n{\"source\":\"https://github.com/woodpecker-ci/woodpecker\",\"version\":\"next-05d2f493\"}\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Read the [Contributing Guidelines](https://github.com/woodpecker-ci/woodpecker/blob/master/CONTRIBUTING.md).\n- [X] Read the [docs](https://woodpecker-ci.org/docs/intro).\n- [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.\n- [X] Check that this is a concrete bug. For Q&A join our [Discord Chat Server](https://discord.gg/fcMQqSMXJy) or the [Matrix room](https://matrix.to/#/#woodpecker:matrix.org).",[],1430,"Wrong pipeline status on cancel","2022-11-22T08:49:51Z","https://github.com/woodpecker-ci/woodpecker/issues/1430",0.71517307,["Reactive",3120],{},["Set"],["ShallowReactive",3123],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fgW55svVEigpk19VauTzQmx_5eM2FmPtdAOW7GhG3u2I":-1},"/woodpecker-ci/woodpecker/1685"]