forked from UST-GPS-SEIS615/java-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
22 lines (20 loc) · 743 Bytes
/
Jenkinsfile
File metadata and controls
22 lines (20 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
properties([pipelineTriggers([githubPush()])])
node('linux') {
stage('Unit Tests') {
git 'https://github.com/akht8823/java-project.git'
sh 'ant -f test.xml -v'
junit "reports/result.xml"
}
stage ('Build') {
sh 'ant -f build.xml -v'
}
stage ('Deploy') {
sh 'aws s3 cp /workspace/java-pipeline/dist/rectangle-*.jar s3://akht8823-assignment-10/'
}
stage('Report'){
withCredentials([[$class: 'AmazonWebServicesCredentialsBinding', accessKeyVariable: 'AWS_ACCESS_KEY_ID', credentialsId: '8e1a0b06-5f11-4485-97fb-44e335762aba', secretKeyVariable: 'AWS_SECRET_ACCESS_KEY']])
{
sh 'aws cloudformation describe-stack-resources --stack-name jenkins --region us-east-1'
}
}
}