github.com/olli-ai/jx/v2@v2.0.400-0.20210921045218-14731b4dd448/pkg/kube/test_data/env_modify_namespace/Jenkinsfile (about)

     1  package kube.test_data.env_modify_namespace
     2  
     3  pipeline {
     4    agent {
     5      label "jenkins-maven"
     6    }
     7    environment {
     8      DEPLOY_NAMESPACE = "change-me"
     9    }
    10    stages {
    11      stage('Validate Environment') {
    12        steps {
    13          container('maven') {
    14            dir('env') {
    15              sh 'jx step helm build'
    16            }
    17          }
    18        }
    19      }
    20      stage('Update Environment') {
    21        when {
    22          branch 'master'
    23        }
    24        steps {
    25          container('maven') {
    26            dir('env') {
    27              sh 'jx step helm apply'
    28            }
    29          }
    30        }
    31      }
    32    }
    33  }