zakyn schrieb am Dienstag, 17. Januar 2023 um 16:57:45 UTC+1:
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']]
}
}
I guess the polling triggers the job and then the deletion is expected.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/5bb24922-02c7-462c-9725-3411e47f966fn%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-users/5bb24922-02c7-462c-9725-3411e47f966fn%40googlegroups.com?utm_medium=email&utm_source=footer>
.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/d76cbd1d-31c9-4923-bd9d-c1f9ab6600f5n%40googlegroups.com.