Hi,
I'm using the pipeline and when it finishes it leaves an empty folder 'my-project@tmp' and I don't want to leave it there.
There is a way to disable the folder generation? Maybe using /tmp
There is a way to tell the pipeline to remove that folder after it finishes?
This is my pipeline:
stage 'test'
node('unix') {
checkout scm
stash inludes: '**', name: 'source'
sh '''
virtualenv --python=python2.7 .env
. .env/bin/activate
pip install -r requirements.txt
./manage.py test --failfast
'''
}
As far as I read seems the 'sh' command creates the directory, but I want to remove it after it finishes or to set a different tmp folder path.
Thanks.