fix: refs #7442 Rollback Jenkinsfile use k8s cluster config
gitea/vn-autoconfig/pipeline/head This commit looks good
Details
gitea/vn-autoconfig/pipeline/head This commit looks good
Details
This commit is contained in:
parent
0eb4dada3c
commit
65e8201bb7
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue