Skip to content

Instantly share code, notes, and snippets.

View mur-me's full-sized avatar
:shipit:
lurking around

Uladzislau Muraveika mur-me

:shipit:
lurking around
  • Protofire.io
View GitHub Profile
@mur-me
mur-me / install_jenkins_plugin.sh
Last active May 16, 2019 09:11 — forked from hoesler/install_jenkins_plugin.sh
Script to install one or more jenkins plugins including dependencies while jenkins is offline - curl can be failed
#!/usr/bin/env bash
set -e
set -o pipefail
plugin_repo_url="http://updates.jenkins-ci.org/download/plugins"
#plugin_dir="/var/lib/jenkins/plugins"
plugin_dir="test"
include_optionals=false
@mur-me
mur-me / pipeline.gdsl
Created February 26, 2019 12:43 — forked from ggarcia24/pipeline.gdsl
GDSL supporting pipeline declarative
//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')
property(name: 'currentBuild', type: 'org.jenkinsci.plugins.workflow.cps.RunWrapperBinder')
property(name: 'scm', type: 'org.jenkinsci.plugins.workflow.multibranch.SCMVar')