Run Testcontainers inside Kubernetes pod
I have to run integration tests inside a container which is inside a Kubernetes POD. I have the folowing jenkinsfile: !groovy pipeline { agent { kubernetes { yaml libraryResource('podTemplates/pod.yaml') } } stages { stage('Checkout from VCS') { steps { checkoutScm() } } stage('Integration Testing') { steps { container('maven') { sh 'mvn test' } } }` } The pod.yaml Pod template has different containers , here its definition: apiVersion: v1 kind: Pod metadata: labels: some-label: jenkins-build-agent-maven spec: containers: - name: maven image: docker.artifactory.serv.cdc.fr/maven-ci:3.8.4-jdk-1
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.