| We have one or more multibranch pipelines which uses declarative jenkinsfile to build, puch & deploy docker images. Our wish is to do some garbage collection and delete these images and deployments when a branch/pipeline is deleted. Depending on our branching strategy we decide if a deployment takes place and we sanitise tags to comply with docker and kubernetes naming schemes. Because of this we assign dynamic values to the build context's environment variables/parameters and wish to pass these values to the triggered job for cleanup. |