-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathpipeline.yaml
More file actions
52 lines (52 loc) · 2.58 KB
/
pipeline.yaml
File metadata and controls
52 lines (52 loc) · 2.58 KB
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
apiVersion: v1
kind: BuildConfig
metadata:
creationTimestamp: null
labels:
app: pipeline
name: pipeline
name: pipeline
spec:
output: {}
postCommit: {}
resources: {}
runPolicy: Serial
source:
type: None
strategy:
jenkinsPipelineStrategy:
jenkinsfile: "node('maven') {\n stage 'build & deploy in dev'\n openshiftBuild(namespace:
'development',\n \t\t\t buildConfig: 'myapp',\n\t\t\t showBuildLogs:
'true',\n\t\t\t waitTime: '3000000')\n \n stage 'verify deploy in dev'\n
\ openshiftVerifyDeployment(namespace: 'development',\n\t\t\t\t depCfg:
'myapp',\n\t\t\t\t replicaCount:'1',\n\t\t\t\t verifyReplicaCount:
'true',\n\t\t\t\t waitTime: '300000')\n \n stage 'deploy in test'\n
\ openshiftTag(namespace: 'development',\n \t\t\t sourceStream: 'myapp',\n\t\t\t
\ sourceTag: 'latest',\n\t\t\t destinationStream: 'myapp',\n\t\t\t destinationTag:
'promoteQA')\n \n openshiftDeploy(namespace: 'testing',\n \t\t\t deploymentConfig:
'myapp',\n\t\t\t waitTime: '300000')\n\n openshiftScale(namespace: 'testing',\n
\ \t\t\t deploymentConfig: 'myapp',\n\t\t\t waitTime: '300000',\n\t\t\t
\ replicaCount: '2')\n \n stage 'verify deploy in test'\n openshiftVerifyDeployment(namespace:
'testing',\n\t\t\t\t depCfg: 'myapp',\n\t\t\t\t replicaCount:'2',\n\t\t\t\t
\ verifyReplicaCount: 'true',\n\t\t\t\t waitTime: '300000')\n \n
\ stage 'Deploy to production'\n timeout(time: 2, unit: 'DAYS') {\n input
message: 'Approve to production?'\n }\n\n openshiftTag(namespace:
'development',\n \t\t\t sourceStream: 'myapp',\n\t\t\t sourceTag: 'promoteQA',\n\t\t\t
\ destinationStream: 'myapp',\n\t\t\t destinationTag: 'promotePRD')\n\n \n
\ openshiftDeploy(namespace: 'production',\n \t\t\t deploymentConfig:
'myapp',\n\t\t\t waitTime: '300000')\n \n openshiftScale(namespace:
'production',\n \t\t\t deploymentConfig: 'myapp',\n\t\t\t waitTime:
'300000',\n\t\t\t replicaCount: '2')\n \n stage 'verify deploy in production'\n
\ openshiftVerifyDeployment(namespace: 'production',\n\t\t\t\t depCfg:
'myapp',\n\t\t\t\t replicaCount:'2',\n\t\t\t\t verifyReplicaCount:
'true',\n\t\t\t\t waitTime: '300000')\n}"
type: JenkinsPipeline
triggers:
- github:
secret: secret101
type: GitHub
- generic:
secret: secret101
type: Generic
status:
lastVersion: 0