pipeline { agent { label 'master' } environment{ REPO_SCRIPTS = "https://git.teajay.cc/teajay/FFKW-Jenkins-Scripte" REPO_GLUON = "https://github.com/freifunk-gluon/gluon.git" DIR_SCRIPTS = "scrpt" } stages { stage('clone') { steps { echo "###################" echo "# Cloning Repos #" echo "###################" echo "checking out build scripts" dir("${DIR_SCRIPTS}"){ git "${REPO_SCRIPTS}" } sh "rm -r gluon" sh "git clone https://github.com/freifunk-gluon/gluon.git gluon -b ${VERSION}" } } stage('clean'){ steps{ echo "########################" echo "# Cleaning Workspace #" echo "########################" //sh "rm -r -f ./*" } } } }