We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cd034e commit 4418aceCopy full SHA for 4418ace
Jenkinsfile
@@ -1,20 +1,38 @@
1
pipeline {
2
agent any
3
+ environment {
4
+ NEW_VERSION = env.GIT_COMMIT
5
+ }
6
stages {
7
stage("build"){
8
steps {
9
echo 'Building the application'
10
+ echo "Building version ${NEW_VERSION}"
11
}
12
13
stage("test") {
14
+ when {
15
+ expression {
16
+ env.BRANCH_NAME == 'dev' || env.BRANCH_NAME != 'master'
17
18
19
echo 'Testing the application'
20
+ echo "Testing version ${NEW_VERSION}"
21
22
23
stage("deploy"){
24
25
echo 'Deploying the application'
26
+ echo "Deploying version ${NEW_VERSION}"
27
28
29
30
+ post {
31
+ always{
32
+ echo 'Build Succeeded'
33
34
+ success {
35
+ echo 'Build Succeeded for this App'
36
37
38
0 commit comments