fix: refs #7442 Rollback Jenkinsfile use k8s cluster config
gitea/vn-autoconfig/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2024-05-21 22:17:03 +02:00
parent 0eb4dada3c
commit 65e8201bb7
1 changed files with 8 additions and 1 deletions

9
Jenkinsfile vendored
View File

@ -6,6 +6,12 @@ pipeline {
PROJECT_NAME = 'vn-autoconfig'
}
stages {
stage('Setup') {
steps {
echo "NODE_NAME: ${env.NODE_NAME}"
echo "WORKSPACE: ${env.WORKSPACE}"
}
}
stage('Build') {
when {
branch 'master'
@ -31,7 +37,8 @@ pipeline {
env.VERSION = packageJson.version
}
withKubeConfig([
clusterName: 'kubernetes',
serverUrl: "$KUBERNETES_API",
credentialsId: 'kubernetes',
namespace: 'autoconfig'
]) {
sh 'kubectl set image deployment/autoconfig autoconfig=registry.verdnatura.es/vn-autoconfig:$VERSION'