diff --git a/Jenkinsfile b/Jenkinsfile index d48e1c2..1e8db6a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -35,10 +35,11 @@ pipeline { expression { '.git' != params.REPOSITORY } } steps { + cleanWs() sh ''' login_url_sub="https://"$(params.USERNAME)":"$(params.PASSWORD)"@" sub='https;//' - git clone $($(params.REPOSITORY)/$(sub)/$(login_url_sub)) . + git clone --recurse-submodules --remote-submodules $($(params.REPOSITORY)/$(sub)/$(login_url_sub)) . ''' } }