Commit ab0cbd76 authored by carlosribas's avatar carlosribas
Browse files

Kubernetes test pipeline

parent 4ba724cc
pipeline {
agent any
parameters {
choice(
name: 'CLUSTER',
choices: ['HX', 'HH'],
description: 'Which cluster config to use?'
)
}
stages {
stage("deploy") {
steps {
script {
if (params.CLUSTER == 'HX') {
withCredentials([file(credentialsId: 'HX-WP-Config', variable: 'config')]) {
sh """
/net/isilonP/public/rw/homes/xfm_adm/.jenkins/kubectl --kubeconfig ${config} get namespace
"""
}
} else if (params.CLUSTER == 'HH') {
withCredentials([file(credentialsId: 'HH-WP-Config', variable: 'config')]) {
sh """
/net/isilonP/public/rw/homes/xfm_adm/.jenkins/kubectl --kubeconfig ${config} get namespace
"""
}
}
}
}
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment