Skip to content

Instantly share code, notes, and snippets.

@johnny-chiang
johnny-chiang / Jenkinsfile
Last active March 20, 2023 20:48
Extract parameters from a jenkins previous build (Declarative pipeline example)
#!groovy
pipeline {
agent any
parameters {
string(name: 'CAUSE', defaultValue: 'anonymous', description: 'Build Cause')
}
stages {
stage('Test Previous Build Status') {
steps {