These are chat archives for jenkinsci/jenkins

22nd
Mar 2018
Andrés Felipe Piñeros
@AndresPineros
Mar 22 03:20
@neb0t "500-800 lines" ... I think you might be breaking a few coding best practices there....
@hrushie Your problem is "why" is the checkout erasing them.
checkout scm DOES clean the workspace folder before cloning the git repository. If those scripts are not placed inside the repository, then they will be erased from the workspace.
Andrés Felipe Piñeros
@AndresPineros
Mar 22 03:37
Put both scripts in your repository, then they shouldn't be erased when you do checkout scm
Other alternatives:
  • If your script can be public, just put it on S3 or as a git Gist. Then download it with wget after the checkout scm.
  • Place your script as a managed file: Jenkins -> Configuration -> Managed Files. Then retrieve the file using the configFileProvider step.
Rushikesh Jawali
@hrushie
Mar 22 03:44
Thanks Andres, I will let you know if I need any more help