Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
pipeline {
agent any
stages {
stage('build') {
steps {
echo 'this is the build job'
sh 'mvn compile'
}
}

stage('Test') {
steps {
echo 'this is the test job'
sh 'mvn clean test'
}
}

stage('Package') {
steps {
echo 'this is the package job'
sh 'mvn package -DskipTests'
}
}

stage('Archive') {
steps {
archiveArtifacts '**/target/*.jar'
}
}

}
tools {
maven 'Maven 3.9.2'
}
post {
always {
echo 'this pipeline has completed...'
}

}
}