Use Jenkins gitea-ssh credential for agent checkout
This commit is contained in:
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -14,6 +14,7 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage('Checkout') {
|
stage('Checkout') {
|
||||||
steps {
|
steps {
|
||||||
|
sshagent(credentials: ['gitea-ssh']) {
|
||||||
sh '''
|
sh '''
|
||||||
if [ -d .git ]; then
|
if [ -d .git ]; then
|
||||||
git remote set-url origin ssh://git@git.mandelblog.com:2222/salt/mandelstudio.git
|
git remote set-url origin ssh://git@git.mandelblog.com:2222/salt/mandelstudio.git
|
||||||
@@ -25,6 +26,7 @@ pipeline {
|
|||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
|
|||||||
Reference in New Issue
Block a user