All of these examples allow for an item to be removed without recreation of any other resources.
variable "data" {
type = map
default = {
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
usage() { | |
cat <<EOF | |
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
inputs: | |
count: | |
type: integer | |
default: 1 | |
maximum: 7 | |
minimum: 1 | |
title: Number of slaves | |
description: Number of Jenkins slaves to deploy | |
ssh_key: | |
type: string |
inputs: | |
count: | |
type: integer | |
default: 1 | |
maximum: 7 | |
minimum: 1 | |
title: Number of slaves | |
description: Number of Jenkins slaves to deploy | |
ssh_key: | |
type: string |
// target-add-rsync.jsonnet: add rsync sidecar container, exposing | |
// <volume_name> below via rsync, by overloading saved "target.json" | |
// NOTE: We're not assuming a particular instrumentation tool (e.g ksonnet, kubecfg via jsonnet) | |
// but rather doing an override from original sts / deploy output json | |
// 1) Save existing deployment/sts to target.json: | |
// kubectl get deployments -n NAMESPACE NAME -o target.json | |
local target = import "target.json"; |
I hereby claim:
To claim this, I am signing this object:
// A Declarative Pipeline is defined within a 'pipeline' block. | |
pipeline { | |
// agent defines where the pipeline will run. | |
agent { | |
// This also could have been 'agent any' - that has the same meaning. | |
label "" | |
// Other possible built-in agent types are 'agent none', for not running the | |
// top-level on any agent (which results in you needing to specify agents on | |
// each stage and do explicit checkouts of scm in those stages), 'docker', |