i'm fairly new to jenkins and scripted sequential pipelines.
As for now I have two simple stages that are "git checkout" and then "Build".
properties([parameters([choice(choices: ['master'], description: 'Branch to select', name: 'branch')])])
node{
stage('Git checkout'){
echo "Pulling changes ${params.branch}"
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 'some-credentials', url: '<my-git-url>']]])
}
stage('Build'){
dir('project/cms') {
withGradle(){
echo 'Creating build folder'
powershell './gradlew clean build'
}
}
}
}
The first stage runs within 5s but the second one takes too long. When I go to check concole output it sais within 50s "Build Successful" but the stage doesn't stop running.
Is there a way to make the stage stop and continue with the pipeline sctipt?
I don't know what can be done to solve this. It just keeps running for more than 10min