While trying to run a jenkins job the job breaks with error:
git clone https://XXXX%@github.com/XXX/XXX
fatal: destination path 'ns-test' already exists and is not an empty directory.
It seems that each run shares the same directory.
Is this correct?
I was wondering the jenkins job was running in isolation..
My script is:
pipeline {
agent {
docker {
image 'python:3.5.1'
args '-v=/etc/passwd:/etc/passwd'
}
}
stages {
stage('checkout') {
steps {
sh 'git clone https://XXXX:XXXX%@github.com/XXXX/XXXX.git'
}
}
stage('build') {
steps {
sh 'ls && pip install -r requirements.txt '
}
}
}