Skip to content

Instantly share code, notes, and snippets.

@edwintye
edwintye / pipeline.gdsl
Last active December 17, 2021 08:59 — forked from ggarcia24/pipeline.gdsl
GDSL supporting pipeline declarative
package main.resources
//The global script scope
def ctx = context(scope: scriptScope())
//What things can be on the script scope
contributor(ctx) {
method(name: 'pipeline', type: 'Object', params: [body: Closure])
property(name: 'params', type: 'org.jenkinsci.plugins.workflow.cps.ParamsVariable')
property(name: 'env', type: 'org.jenkinsci.plugins.workflow.cps.EnvActionImpl.Binder')