forked from IBM/node-build-config-openshift
-
Notifications
You must be signed in to change notification settings - Fork 196
Expand file tree
/
Copy pathJenkinsfile
More file actions
39 lines (38 loc) · 752 Bytes
/
Jenkinsfile
File metadata and controls
39 lines (38 loc) · 752 Bytes
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
pipeline {
agent {
label "maven"
}
options {
buildDiscarder(logRotator(numToKeepStr: '50'))
}
parameters {
string(name: 'stage', defaultValue: '')
}
environment {
DATE_TAG=sh (script: 'date --utc +v%Y%m%d%H%M', returnStdout: true).trim()
BRANCH_NAME="${GIT_BRANCH}"
}
stages {
stage('Initialize') {
steps {
sh "echo Initializing.."
println("Date: ${env.DATE_TAG}\nBranch: ${env.BRANCH_NAME}")
}
}
stage('App: Build') {
steps {
sh "echo Building App.."
}
}
stage('App: Test') {
steps {
sh "echo Testing App.."
}
}
stage('App: Container Image') {
steps {
sh "echo Testing App.."
}
}
}
}