node {
stage('Build') {
echo 'Building...'
git changelog: false, poll: false, url: 'https://github.com/kishoraswar22/spring-boot-war-example.git'
}
stage('Test') {
echo 'Testing...'
// This stage could include commands to run your tests
}
stage('Deploy') {
echo 'Deploying...'
// This stage could include commands to deploy your application
}
try {
echo 'Pipeline execution completed successfully.'
} catch (err) {
echo "Pipeline failed: ${err}"
}
}
No comments:
Post a Comment