Lab 5
Lab 5
stages {
stage('Checkout Code') {
steps {
git branch: 'main', url: 'https://github.com/deepak574/project.git'
}
}
stage('Build') {
steps {
Output:
To configure Jenkins to poll your GitHub repository at regular intervals (every 5 minutes, for
example), you can use the Poll SCM option.
Jenkins will automatically check GitHub for changes at regular intervals and trigger a build if there are
any.