Skip to content

Instantly share code, notes, and snippets.

@wburgers
wburgers / ns-api
Last active June 24, 2016 20:57
Een simpele server side proxy voor de ns-api (alleen nginx nodig)
location /nsapi/ {
allow 192.168.0.1/24; #proxy alleen beschikbaar voor je interne netwerk.
deny all;
proxy_pass https://webservices.ns.nl/;
proxy_set_header Authorization "Basic <base64encoded gebruikersnaam:wachtwoord hier>";
add_header Access-Control-Allow-Origin $http_origin;
}
import hudson.model.*
import jenkins.model.Jenkins
def JobName = "Your PR-pipeline job name here"
def buildingJobs = Jenkins.instance.getAllItems(Job.class).findAll {
it.getName() == JobName && it.isBuilding()
}
def latestBuildForPR = []