Conversation
|
Few things here... I switched to cleanWs() instead of deleteDir(). Rationals => https://stackoverflow.com/questions/54019121/what-is-the-difference-between-deletedir-cleanws-and-wscleanup-in-jenkins-pi Some comments saying deleteDir() is bad with a docker context. Like it gets confused because the mounted directory went away... Was thinking could that explain why sometimes we get 404 container not found in the build? Workers seems to have the capacity to hold 2 builds at the same time... I don't know if deleteDir() could create those issues by when starting a 2nd build on the worker, it fucks up docker context with the first build running... Anyways it's just a try On an other note I saw the Cassandra build using it as well in their Jenkinsfile as pre clean step. They don't seem to have a post clean... well if you clean your workspace everytime before building I think it's not necessary to keep it too (specially only in success case) As well I added Also got rid of deleting james maven deps from m2 folder... I'm not sure that it does any good to our builds so trying without it for now EDIT: Actually workspaces seem to be proper to each PR so my previous argument is not really valid... But I still think maybe cleanWs is safer and cleaner than deleteDir ? I don't know if Cassandra project has a particular reason behind it but I still think worth a try on our end... |
No description provided.