Skip to content

Commit

Permalink
Update Jenkins_Declarative
Browse files Browse the repository at this point in the history
  • Loading branch information
terence-octo authored Dec 17, 2021
1 parent 0cc7803 commit 78ecaf0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Jenkins_Declarative
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,32 @@ pipeline {
stages {
stage('Clone repository') {
steps {
script{
checkout scm
}
}
}

stage('Build') {
steps {
script{
app = docker.build("underwater")
}
}
}
stage('Test'){
steps {
sh 'make check'
junit 'reports/**/*.xml'

}
}
stage('Deploy') {
steps {
script{
docker.withRegistry('https://720766170633.dkr.ecr.us-east-2.amazonaws.com', 'ecr:us-east-2:aws-credentials') {
app.push("${env.BUILD_NUMBER}")
app.push("latest")
}
}
}
}
}
}
Expand Down

0 comments on commit 78ecaf0

Please sign in to comment.