Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong value of CI_(PREV_)COMMIT_MESSAGE #4195

Open
3 tasks done
zc-devs opened this issue Oct 5, 2024 · 0 comments
Open
3 tasks done

Wrong value of CI_(PREV_)COMMIT_MESSAGE #4195

zc-devs opened this issue Oct 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@zc-devs
Copy link
Contributor

zc-devs commented Oct 5, 2024

Component

server

Describe the bug

CI_COMMIT_MESSAGE and CI_PREV_COMMIT_MESSAGE are set to pipeline message.

Steps to reproduce

  1. Manually run pipeline
skip_clone: true
steps:
  hello:
    image: alpine
    commands:
      - echo Hello world
  1. Find CI_COMMIT_MESSAGE/CI_PREV_COMMIT_MESSAGE among Pod's environment variables
  2. Get wrong value like MANUAL PIPELINE @ 01-hello-world
        - name: CI_COMMIT_MESSAGE
          value: MANUAL PIPELINE @ 01-hello-world
        - name: CI_PREV_COMMIT_MESSAGE
          value: MANUAL PIPELINE @ 01-hello-world

Expected behavior

MANUAL PIPELINE @ 01-hello-world - is pipeline message, not commit.
So, variable should be named like CI_(PREV_)PIPELINE_MESSAGE or value should be as actual commit message.

System Info

`next-8e7cace29a`, Kubernetes

Additional context

No response

Validations

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Checked that the bug isn't fixed in the next version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]
@zc-devs zc-devs added the bug Something isn't working label Oct 5, 2024
@zc-devs zc-devs changed the title Wrong value of CI_PREV_COMMIT_MESSAGE Wrong value of CI_(PREV_)COMMIT_MESSAGE Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant