diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..64c5241 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,40 @@ +pipeline { + agent any + + stages { + stage('Checkout') { + steps { + git 'https://github.com/your-username/your-repo.git' + } + } + + stage('Build') { + steps { + sh 'mvn clean package' + } + } + + stage('Test') { + steps { + sh 'mvn test' + } + } + + stage('Deploy') { + steps { + sh 'mkdir -p /tmp/deploy' + sh 'cp target/*.jar /tmp/deploy/' + echo '✅ Deployment complete!' + } + } + } + + post { + success { + echo '✅ Pipeline completed successfully!' + } + failure { + echo '❌ Pipeline failed!' + } + } +}