node {
stage('down jar') {
sh "rm -rf ./*config*"
sh "wget http://182.50.117.44:8081/jci_jars/${project}.tar.gz"
}
stage('rename jar') {
sh "rm -fr azure-git ||echo ok"
sh "mkdir azure-git|| echo ok"
sh "tar xf ${project}.tar.gz"
dir('azure-git'){
sh "rm -rf jci*"
sh "git init"
sh "git remote add origin http://10.71.201.145:8080/gitbucket/git/root/jci-config-repository.git"
sh "git pull origin master"
sh "cp -rf ../config-repository/* ."
sh "git add -A"
sh "git commit -m 'config-repository commit'"
sh "git push origin master"
}
}
}