Comments (6)
The same here.
The slack message arrives empty in slack and all the pipelines are failing.
from drone-slack.
@Leen15 are you using since as well or is this something different? The type changed from int64
to time.Time
.
from drone-slack.
@donny-dont I'm using this plugin configured as follow:
---
kind: pipeline
name: notify-pipeline-start
steps:
- name: slack
image: plugins/slack
settings:
webhook:
from_secret: SLACK_WEBHOOK
channel:
from_secret: SLACK_CHANNEL
link_names: true
# template source: https://gist.github.com/wzulfikar/e9064862d17467ed36b81d2f2c17389a
template: >
{{#if build.pull }}
*Build started*: {{ repo.owner }}/{{ repo.name }} - <https://github.com/{{ repo.owner }}/{{ repo.name }}/pull/{{ build.pull }}|Pull Request #{{ build.pull }}>
{{else}}
*Build started: {{ repo.owner }}/{{ repo.name }} - Build #{{ build.number }}* (type: `{{ build.event }}`)
{{/if}}
Commit: <https://github.com/{{ repo.owner }}/{{ repo.name }}/commit/{{ build.commit }}|{{ truncate build.commit 8 }}>
Branch: <https://github.com/{{ repo.owner }}/{{ repo.name }}/commits/{{ build.branch }}|{{ build.branch }}>
Author: {{ build.author }}
<{{ build.link }}|Visit build page ↗>
---
kind: pipeline
name: notify-pipeline-end
steps:
- name: slack
image: plugins/slack
settings:
webhook:
from_secret: SLACK_WEBHOOK
channel:
from_secret: SLACK_CHANNEL
link_names: true
template: >
{{#if build.pull }}
*{{#success build.status}}✔{{ else }}✘{{/success}} {{ uppercasefirst build.status }}*: {{ repo.owner }}/{{ repo.name }} - <https://github.com/{{ repo.owner }}/{{ repo.name }}/pull/{{ build.pull }}|Pull Request #{{ build.pull }}>
{{else}}
*{{#success build.status}}✔{{ else }}✘{{/success}} {{ uppercasefirst build.status }}: {{ repo.owner }}/{{ repo.name }} - Build #{{ build.number }}* (type: `{{ build.event }}`)
{{/if}}
Commit: <https://github.com/{{ repo.owner }}/{{ repo.name }}/commit/{{ build.commit }}|{{ truncate build.commit 8 }}>
Branch: <https://github.com/{{ repo.owner }}/{{ repo.name }}/commits/{{ build.branch }}|{{ build.branch }}>
Author: {{ build.author }}
Duration: {{ since build.created }}
<{{ build.link }}|Visit build page ↗>
The "notify-pipeline-start" output is:
time="2020-09-17T14:45:27Z" level=info msg="sending message" channel="#********" username=
The "notify-pipeline-end" output is:
time="2020-09-17T14:48:00Z" level=error msg="execution failed: could not create template message: Evaluation error: Helper since called with argument 0 with type time.Time but it should be int64\nCurrent node:\n\tPath{Original:'build.created', Pos:726}"
I have the same steps in most of our repositories so every pipeline is failing due to this issue.
In slack it arrives an empty message (I think for the start step, nothing for the end step):
from drone-slack.
K thanks both of you we'll add those to a set of tests to make sure stuff doesn't break next time we try and reland this.
from drone-slack.
is this released? still getting empty messages in mattermost. thanks
from drone-slack.
I encountered no response in slack channel, but the drone status shows success
from drone-slack.
Related Issues (20)
- Create a tag and push into my repository. Trigger slack notification, but got 'panic: runtime error: slice bounds out of range' HOT 7
- allow message color override in settings HOT 1
- Commit message with quote ' converted to ' HOT 2
- Helper function datetime does not match documentation HOT 4
- Newlines not working in message template HOT 2
- build.author not resolving to expected username
- [feature] Allow template to be read from a file HOT 4
- {{ datetime }} => Evaluation error: Helper datetime called with argument 0 with type int64 but it should be float64 HOT 2
- Dependency Dashboard
- Sending attachment
- Only send notifications on if one of a set of specific steps fails
- Drone doesn't link channel name HOT 1
- The plugin sends notifications as successful. HOT 3
- error on custom template with example HOT 1
- Recipient Setting Does Not Work With Display Name HOT 2
- Improvement: commit messages since last successful build HOT 3
- Getting the slack username to tag on an unsuccessful build HOT 2
- link-names update is missing in Config of main.go HOT 1
- How do I use slack plugin within ssh pipeline HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drone-slack.