Skip to content

Commit

Permalink
ci: enable k8s specific validations (#19)
Browse files Browse the repository at this point in the history
* ci: enable k8s specific validations

* add scripts

* ci: use the rigth when

* ci: enable k8s specific validations

* ci: use the rigth when

* script: enable execution permissions

* script: enable execution permissions

* ci: enable k8s specific validations

* ci: use the rigth when

* Update .ci/Jenkinsfile

Co-authored-by: narph <mariana@elastic.co>
  • Loading branch information
v1v and narph authored Feb 1, 2022
1 parent c7d81b8 commit 0e13da7
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,28 @@ pipeline {
}
}
}
stage('K8s') {
when {
// TODO: Run only if changes in
// - "^deploy/kubernetes/.*"
// - "^version/docs/version.asciidoc"
expression { return env.PLATFORM == 'ubuntu-20.04 && immutable' }
}
steps {
withGithubNotify(context: "K8s-${PLATFORM}") {
withMageEnv(){
withEnv(["K8S_VERSION=v1.23.0", "KIND_VERSION=v0.11.1", "KUBECONFIG=${env.WORKSPACE}/kubecfg"]){
dir("${BASE_DIR}"){
retryWithSleep(retries: 2, seconds: 5, backoff: true){ sh(label: "Install kind", script: ".ci/scripts/install-kind.sh") }
retryWithSleep(retries: 2, seconds: 5, backoff: true){ sh(label: "Install kubectl", script: ".ci/scripts/install-kubectl.sh") }
sh(label: "Setup kind", script: ".ci/scripts/kind-setup.sh")
sh(label: "Deploy to kubernetes",script: "make -C deploy/kubernetes test")
}
}
}
}
}
}
}
}
}
Expand Down

0 comments on commit 0e13da7

Please sign in to comment.