#release-engineering (2022-06)

jenkins_ci All things CI/CD. Specific emphasis on Codefresh and CodeBuild with CodePipeline.

CI/CD Discussions

Archive: https://archive.sweetops.com/release-engineering/

2022-06-16

timduhenchanter avatar
timduhenchanter

Does anyone have good advice on best practices invoking integration tests in pipe with external user supplied ephemeral infrastructure dependencies?

timduhenchanter avatar
timduhenchanter

My current attempt at implementation utilizing Jenkins as the CICD tool sitting on top of K8S.

I wanted to piggyback the Jenkins agent and dynamically add additional containers to the pod declaration from a user supplied yaml file sitting in the repository of the current build. I have this working using inheritFrom with the Kubernetes plugin but this has to be done after the initial agent is already provisioned and it ultimately creates a secondary agent for the particular stage. Is there anyway to achieve this in a manner that is not in-flight (that the YAML can be merged before the agent is provisioned)?

I feel like there is a much better way to go about this but haven’t found anything in my search.

timduhenchanter avatar
timduhenchanter

https://github.com/liejuntao001/jenkins-k8sagent-lib

I actually stumbled across this. This is almost exactly what I want. The templates are just stored in a shared library instead of in the remote repository. I wish I could fetch that in a distributed manner without requiring the agent to do the SCM checkout.

liejuntao001/jenkins-k8sagent-lib

Jenkins Shared Library to get dynamic agent from Kubernetes cloud

    keyboard_arrow_up