Merged tasks for both containers

This commit is contained in:
Marcin-Ramotowski 2025-06-12 21:35:07 +00:00
parent cbd77b8bb1
commit c09d7c448f

View File

@ -1,7 +1,6 @@
pipeline { pipeline {
agent { agent {
kubernetes { kubernetes {
defaultContainer 'kubectl'
yamlFile '.jenkins/podTemplate.yaml' yamlFile '.jenkins/podTemplate.yaml'
} }
} }
@ -26,10 +25,6 @@ pipeline {
sh ''' sh '''
az login --identity az login --identity
az aks get-credentials --resource-group $RESOURCE_GROUP --name $CLUSTER_NAME --overwrite-existing az aks get-credentials --resource-group $RESOURCE_GROUP --name $CLUSTER_NAME --overwrite-existing
'''
}
container('kubelogin') {
sh '''
kubelogin convert-kubeconfig -l azurecli kubelogin convert-kubeconfig -l azurecli
''' '''
} }