This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |