forked from Koniverse/DotInsights
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
74 lines (63 loc) · 2.19 KB
/
azure-pipelines.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- dotinsights-dev
pool:
name: "Default"
jobs:
- job: Frontend_Test
displayName: Agent 1
pool: "Default"
steps:
- task: PythonScript@0
inputs:
scriptSource: 'inline'
pythonInterpreter: /usr/bin/python3
script: |
import requests #dependency
url = "https://discord.com/api/webhooks/1043378904515235890/jblsnPli7C08ZLaxr-FabTZpXaOgSbKn-rQC2CUMsV3X8J1Y1Yy2nzyEAERsl8BpejnK"
data = {
"content" : ":computer::computer::computer: Build dotinsights frontend in dev",
"username" : "Dotinsights-Bot"
}
data["embeds"] = [
{
"description" : "Build Frontend Start in Branch Dev ",
}
]
result = requests.post(url, json = data)
try:
result.raise_for_status()
except requests.exceptions.HTTPError as err:
print(err)
- task: SSH@0
inputs:
sshEndpoint: 'CDM Server Stage'
runOptions: 'inline'
inline: |
cd /home/ubuntu/DotInsights-FE-TEST
sh update.sh > /dev/null 2>&1
readyTimeout: '20000'
- task: PythonScript@0
inputs:
scriptSource: 'inline'
pythonInterpreter: /usr/bin/python3
script: |
import requests #dependency
url = "https://discord.com/api/webhooks/1043378904515235890/jblsnPli7C08ZLaxr-FabTZpXaOgSbKn-rQC2CUMsV3X8J1Y1Yy2nzyEAERsl8BpejnK"
data = {
"content" : ":white_check_mark::white_check_mark::white_check_mark: Build dotinsights in dev",
"username" : "Dotinsights-Bot"
}
data["embeds"] = [
{
"description" : "Build Frontend Succeeded",
}
]
result = requests.post(url, json = data)
try:
result.raise_for_status()
except requests.exceptions.HTTPError as err:
print(err)