-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathhello-world-pwd.yml
54 lines (53 loc) · 1.53 KB
/
hello-world-pwd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
task-config: &task-config
platform: linux
image_resource:
type: registry-image
source: { repository: busybox }
resources:
- name: alert
type: teams-notification
source:
url: "PUT YOUR WEBHOOK HERE"
proxy_url: http://192.168.0.47
proxy_port: 1234
proxy_username: myapp
proxy_password: mysecret
resource_types:
- name: teams-notification
type: docker-image
source:
repository: navicore/teams-notification-resource
tag: dev
jobs:
- name: hello-world-pwd-job
plan:
- task: hello-world-pwd-task
config:
# Tells Concourse which type of worker this task should run on
platform: linux
# This is one way of telling Concourse which container image to use for a
# task. We'll explain this more when talking about resources
image_resource:
type: registry-image
source:
repository: busybox # images are pulled from docker hub by default
# The command Concourse will run inside the container
# echo "Hello world!"
run:
path: echo
args: ["Hello world!"]
on_success:
task: job-success
config:
<< : *task-config
run:
path: echo
args: ["This job succeeded!"]
on_success:
put: alert
params:
text: |
task tested: with no errors
title: hello-world-pwd tested good
actionName: hello-world-pwd Pipeline
actionTarget: $ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME