forked from karthiko/kubetest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
43 lines (43 loc) · 1.34 KB
/
Jenkinsfile
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
pipeline{
agent any
stages {
stage('Build') {
environment {
BLUEPRINT_NAME = "test_blueprint_demo_blueprint"
MORPHEUS_TOKEN = credentials('jenkins-morpheus_token')
MORPHEUS_URL = "https://core-morpheus.morpheus.r53acpaccenturecloud.net"
}
steps {
sh 'python3 deploy/update_blueprint.py'
}
}
stage('Dev') {
environment {
TASK_NAME = "test_python_d_001"
CLUSTER_NAME = "test_d_cluster_001"
MORPHEUS_TOKEN = credentials('jenkins-morpheus_token')
MORPHEUS_URL = "https://core-morpheus.morpheus.r53acpaccenturecloud.net"
}
steps {
sh 'python3 deploy/execute_task.py'
}
}
stage('Production') {
environment {
CLUSTER_NAME = "morpheus-eks-test-cluster"
MORPHEUS_TOKEN = credentials('jenkins-morpheus_token')
MORPHEUS_URL = "https://core-morpheus.morpheus.r53acpaccenturecloud.net"
TASK_NAME = "test_python_d_001"
}
steps {
sh 'python3 deploy/execute_task.py'
}
}
}
post {
// Clean after build
always {
cleanWs()
}
}
}