Hello,
thank you.
The job is defined as a jenkinsfile with the polling and git checkout and other build steps.
The snippet of jenkinsfile is below.
After deeper investigation just at the time when polling is executed (every hour) the build files from the workspace on the node
are removed and the repository stays there.
We are using the artifacts but sometimes you need some intermediate files that's why we do not delete workspace after job but before.
We are migrating from jenkins 2.222.3 (everything works) -> 2.375.2
Thank you for your help.
Vladimir
-------------------------------
Jenkinsfile part:
triggers{
pollSCM('@hourly')
}
stage('Clean workspace'){
steps{
cleanWs deleteDirs: true, patterns: [[pattern: '**/.git/**', type: 'EXCLUDE']]
}
}
stage('Checkout Git'){
steps{
checkout(
[$class: 'GitSCM',
branches: [[name: "remotes/origin/${BUILD_BRANCH}"]],
browser: [
$class: 'GitWeb',
repoUrl: 'URL'],
doGenerateSubmoduleConfigurations: false,
extensions: [
[$class: 'DisableRemotePoll'],
[$class: 'CleanBeforeCheckout'],
[$class: 'CheckoutOption', timeout: 120]],
submoduleCfg: [],
userRemoteConfigs: [
[url: 'URL']
]
]
)
}
}
stage('another setp'){
.....