Open rockdrilla opened 7 months ago
server, agent
I'm trying to setup CI agent with several labels but I suppose that filter accounts only last value for each label.
E.g. if WOODPECKER_FILTER_LABELS is set to test_selector=a,test_selector=b then only last part is in effect.
WOODPECKER_FILTER_LABELS
test_selector=a,test_selector=b
NB: "dedicated" CI agent (with WOODPECKER_FILTER_LABELS=test_selector=a) was shutdown before git push
WOODPECKER_FILTER_LABELS=test_selector=a
"offending" pipeline commit: here pending pipeline: here
simplified .woodpecker.yml
.woodpecker.yml
when: event: [ push, tag, manual ] steps: - name: env image: docker.io/library/debian:bookworm-slim commands: - cat /proc/self/environ | sort -zuV | xargs -0 -r -n 1 printf '%q\n' labels: test_selector: a
simplified docker-compose.yml
docker-compose.yml
services: woodpecker: image: docker.io/woodpeckerci/woodpecker-server:v2.4.1 environment: WOODPECKER_HOST: https://ci.krd.sh WOODPECKER_GITEA: "true" WOODPECKER_GITEA_URL: https://git.krd.sh woodpecker-agent-test-a: image: docker.io/woodpeckerci/woodpecker-agent:v2.4.1 environment: WOODPECKER_SERVER: ci.krd.sh:9000 WOODPECKER_FILTER_LABELS: "test_selector=a" woodpecker-agent-test-b: image: docker.io/woodpeckerci/woodpecker-agent:v2.4.1 environment: WOODPECKER_SERVER: ci.krd.sh:9000 WOODPECKER_FILTER_LABELS: "test_selector=b" woodpecker-agent-test-ab: image: docker.io/woodpeckerci/woodpecker-agent:v2.4.1 environment: WOODPECKER_SERVER: ci.krd.sh:9000 WOODPECKER_FILTER_LABELS: "test_selector=a,test_selector=b"
Probably, this issue relates to #2634 and #3483
https://ci.krd.sh/version {"source":"https://github.com/woodpecker-ci/woodpecker","version":"2.4.1"}
No response
next
Also, if I set label to "second" value then pipeline runs fine.
commit: here pipeline: here
Component
server, agent
Describe the bug
I'm trying to setup CI agent with several labels but I suppose that filter accounts only last value for each label.
E.g. if
WOODPECKER_FILTER_LABELS
is set totest_selector=a,test_selector=b
then only last part is in effect.NB: "dedicated" CI agent (with
WOODPECKER_FILTER_LABELS=test_selector=a
) was shutdown before git push"offending" pipeline commit: here pending pipeline: here
simplified
.woodpecker.yml
simplified
docker-compose.yml
Probably, this issue relates to #2634 and #3483
System Info
Additional context
No response
Validations
next
version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]