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
48 changes: 48 additions & 0 deletions backend/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
pipline{
agent any
tools {
maven 'Maven'
jdk 'JDK17'
}
environment {
BACKEND_DIR='backend'
}
stages {
stage ('CHECHOUT'){
steps {
checkout scm
}
}
stage ('Build Backend'){
steps {
dir("${BACHEND_DIR}"){
sh 'mvn clean compile'
}
}
}
stage ('Run Tests'){
steps {
dir("${BACKEND_DIR}"){
sh 'mvn test'
}
}
}
stage('Package') {
steps {
dir("${BACKEND_DIR}") {
sh 'mvn package -DskipTests'
}
}
}
}

post {
success {
echo 'Backend Build Successful!'
}
failure {
echo 'Backend Build Failed!'
}
}

}