I have a pipeline build and I want to move it to source control. I've copied out the script from the the project into a Jenkinsfile and added it to git. In my pipeline I have code like this:
#!groovy​ node { stage('checkout') { deleteDir() git 'http://git.server/markallison/my-project.git' } stage('build') { // build code } ... etc I like to have a clean workspace every time the build runs, so how do I do this without having to have a separate project for my Jenkinsfile? -- 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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0cf05e7f-0f14-4f5f-94d6-0995b33ac500%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.