added first changes in jenkinsfile

This commit is contained in:
jitendra 2024-03-21 12:35:18 +05:30
parent 12069d49aa
commit a904963465

25
jenkinsfile Normal file
View file

@ -0,0 +1,25 @@
pipeline{
agent{ label 'MAVEN'}
options{
timeout(time: 30, unit: 'MINUTES')
}
triggers{ pollSCM('* * * * *')
}
stages{
stage('git'){
steps{
git url: 'https://github.com/Jitu123singh/dummy-repository-for-day-build.git',
branch: 'dev'
}
stage('Build'){
steps{
sh 'mvn clean package'
}
}
}
}
}