Jenkinsfile

Jenkinsfile
This commit is contained in:
samgithubadmin 2021-03-16 13:03:04 +05:30 committed by GitHub
parent e2fbc56130
commit c02ddd83d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

24
Jenkinsfile vendored Normal file
View file

@ -0,0 +1,24 @@
pipeline {
agent any
stages {
stage('checkout') {
steps {
git credentialsId: '0506e542-582e-411e-97bc-24e3791bb711', url: 'https://github.com/samgithubadmin/spring-petclinic.git'
}
}
stage('Build') {
steps {
sh 'mvn clean package'
}
}
stage('Junit test') {
steps {
junit 'target/surefire-reports/*.xml'
}
}
stage('s3 bucket') {
steps {
s3Upload consoleLogLevel: 'INFO', dontSetBuildResultOnFailure: false, dontWaitForConcurrentBuildCompletion: false, entries: [[bucket: 'devenv12', excludedFile: '', flatten: false, gzipFiles: false, keepForever: false, managedArtifacts: false, noUploadOnFailure: false, selectedRegion: 'us-east-2', showDirectlyInBrowser: false, sourceFile: '*/**.jar', storageClass: 'STANDARD', uploadFromSlave: false, useServerSideEncryption: false]], pluginFailureResultConstraint: 'FAILURE', profileName: 's3bucket', userMetadata: []
}
}
}}