diff --git a/jenkinsfile b/jenkinsfile new file mode 100644 index 0000000..fec2cba --- /dev/null +++ b/jenkinsfile @@ -0,0 +1,22 @@ +pipeline { +agent any +stages { + stage('SCM code') { + steps { + git 'https://github.com/rkaur019/java11-examples.git' + } + } + stage('Build') { + steps { + sh 'mvn clean package' + } + } + stage('Publish') { + steps { + // Add steps to publish artifacts or deploy the application + // For example, you can use the 'archiveArtifacts' step to archive built artifacts + archiveArtifacts 'target/*.jar' + } + } +} +}