Run multilingual audit on Jenkins built-in node
This commit is contained in:
@@ -17,12 +17,17 @@ pipeline {
|
||||
}
|
||||
stages {
|
||||
stage('Checkout') {
|
||||
agent { label 'built-in' }
|
||||
steps {
|
||||
withCredentials([sshUserPrivateKey(credentialsId: 'gitea-ssh', keyFileVariable: 'GIT_KEYFILE')]) {
|
||||
sh '''
|
||||
export GIT_SSH_COMMAND="ssh -i $GIT_KEYFILE -o StrictHostKeyChecking=accept-new"
|
||||
if [ -d .git ]; then
|
||||
git remote set-url origin ssh://git@git.mandelblog.com:2222/salt/mandelstudio.git
|
||||
if git remote get-url origin >/dev/null 2>&1; then
|
||||
git remote set-url origin ssh://git@git.mandelblog.com:2222/salt/mandelstudio.git
|
||||
else
|
||||
git remote add origin ssh://git@git.mandelblog.com:2222/salt/mandelstudio.git
|
||||
fi
|
||||
git fetch --tags --force --progress origin +refs/heads/master:refs/remotes/origin/master
|
||||
else
|
||||
git clone ssh://git@git.mandelblog.com:2222/salt/mandelstudio.git .
|
||||
|
||||
Reference in New Issue
Block a user