add step to push master to gitea and delete other branches
This commit is contained in:
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@@ -111,7 +111,10 @@ pipeline {
|
|||||||
git pull origin master
|
git pull origin master
|
||||||
git remote add master https://gitea.confdroid.com/confdroid/puppet_cd.git
|
git remote add master https://gitea.confdroid.com/confdroid/puppet_cd.git
|
||||||
git -c credential.helper="!f() { echo username=${GITEA_USER}; echo password=${GITEA_TOKEN}; }; f" \
|
git -c credential.helper="!f() { echo username=${GITEA_USER}; echo password=${GITEA_TOKEN}; }; f" \
|
||||||
push master --mirror
|
push master --mirror \
|
||||||
|
branch -D development \
|
||||||
|
branch -D jenkins*
|
||||||
|
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user