forked from cloudtechmasters/springboothello-CICD
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile-SSM
More file actions
30 lines (30 loc) · 814 Bytes
/
Jenkinsfile-SSM
File metadata and controls
30 lines (30 loc) · 814 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
pipeline {
agent any
environment {
FROM_MAIL = "${sh (script: 'aws ssm get-parameters --region us-east-1 --names FROM_MAIL --query Parameters[0].Value | sed \'s/"//g\'',returnStdout: true)}"
TO_MAIL = "${sh (script: 'aws ssm get-parameters --region us-east-1 --names TO_MAIL --query Parameters[0].Value | sed \'s/"//g\'',returnStdout: true)}"
}
tools{
maven 'maven3'
}
stages {
stage('Git Checkout') {
steps {
git branch: 'master', url: 'https://github.com/Naresh240/spring-boot-hello.git'
}
}
stage('Build Maven'){
steps {
sh 'mvn clean package'
}
}
}
post {
always {
mail from: "${FROM_MAIL}",
to: "${TO_MAIL}",
subject: 'Build Info',
body: 'Build Success'
}
}
}