Skip to content

Instantly share code, notes, and snippets.

View rkivisto's full-sized avatar

Ray Kivisto rkivisto

View GitHub Profile
@rkivisto
rkivisto / gist:6fc98dbbc194882d2608edf967d2bd08
Created September 23, 2020 15:26
upstream and downstream Pipelines that the upstream can choose the Docker image for the agent pod of the downstream Pipeline
Upstream:
pipeline {
agent {
kubernetes {
// Rather than inline YAML, in a multibranch Pipeline you could use: yamlFile 'jenkins-pod.yaml'
// Or, to avoid YAML:
// containerTemplate {
// name 'shell'
// image 'ubuntu'