forked from davegree-n/daytrader-example-webrepo
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Jenkinsfile
56 lines (55 loc) · 1.35 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
44
45
46
47
48
49
50
51
52
53
54
55
56
@Library('DaytraderLib')_
def podTemplateYaml = libraryResource 'maven-kaniko.yaml'
pipeline {
agent {
kubernetes {
label 'maven-kaniko-pod'
yaml podTemplateYaml
}
}
//libraries {
// lib('DaytraderLib')
//}
stages {
stage('build maven') {
steps {
mavenBuild('daytrader-webapp')
}
}
stage('Build with Kaniko') {
environment {
PATH = "/busybox:/kaniko:$PATH"
}
steps {
kanikoBuild('kaniko',
'daytrader-webapp',
'daytrader-web',
'baserepodev.devrepo.malibu-pctn.com/104017-malibu-artifacts/malibu-app-images/daytrader',
'daytrader-example-webapp',
'latest',
'4.0.0',
5443)
}
}
//stage('Deploy Trigger') {
// steps {
// spinnakerTrigger('maven',
// 'malibu-apps',
// 'waitPipeline')
// }
//}
//stage('Deploy Status') {
// input{
// id 'Spinnaker-deploy'
// message 'Waiting for spinnaker'
// ok 'succeeded'
// parameters {
// string(defaultValue: 'pending', description: '', name: 'STATUS', trim: false)
// }
// }
// steps {
// echo "Deploying ${STATUS}."
// }
//}
}
}