stages {
stage('Clone Repository') {
steps {
// Define the Git SCM checkout step
script {
git url: 'https://github.com/MithunTechnologiesDevOps/spring-boot-mongo-docker.git'
branch: 'main'
}
}
}
// Add more stages for your build or deployment process here
stage('Build') {
steps {
// Compile your Java code and package it into a JAR file
sh 'mvn clean package' // Use 'mvn' or 'gradle' depending on your build tool
}
}
}
pipeline { agent any
}