Closed sgp closed 7 years ago
@sgp Thank you for reporting.
Could you show me your wercker.yml
? I might be able to help you.
@spesnova I already worked around this by using wantedly/pretty-slack-notify@0.3.1
. Is there something else you'd like to tell me about? 😄
(I've redacted bits from our wercker.yml
that are a bit sensitive, but you should get the gist.)
box: ewtroan-pendo/goae@0.4.1
# Build definition
build:
# The steps that will be executed on build
steps:
- script:
name: do stuff
code: |
# [REDACTED]
after-steps:
- wantedly/pretty-slack-notify@0.3.1:
webhook_url: $SLACK_WEBHOOK_URL
deploy:
steps:
- script:
name: do stuff
code: |
# [REDACTED]
after-steps:
- wantedly/pretty-slack-notify@0.3.1:
webhook_url: $SLACK_WEBHOOK_URL
@sgp
Thank you for sharing it to me 😃
I already worked around this by using wantedly/pretty-slack-notify@0.3.1.
That's good to hear
Is there something else you'd like to tell me about?
Perhaps I found the root cause why 0.3.2 doesn't work for you and 0.3.1 works.
I think this line's sudo
is the root cause:
https://github.com/wantedly/step-pretty-slack-notify/blob/master/run.sh#L34
Because environment variables are not passed when using sudo
,
This issue will be fixed in next release. As I don't use wercker on my work actively nowadays, I won't be able to find this bug if nobody reports. So I'd like to say thank you for reporting again 😄
@sgp I released 0.3.3 with the fix of this issue. Please try it.
This broke as of 0.3.2.