Set a system environment variable AUTHZ_JSON_URL
that points to a JSON file with the following structure:
{
"admins": [
"groupA",
"userA"
],
import jenkins.model.* | |
import hudson.model.* | |
import hudson.tools.* | |
def inst = Jenkins.getInstance() | |
def desc = inst.getDescriptor("hudson.model.JDK") | |
def versions = [ | |
"jdk8": "jdk-8u102-oth-JPR" |
What does the following output?
# what will the following code output?
const arr = [5, 9, 4, 12];
for (var i = 0; i < arr.length; i++) {
setTimeout(function() {
console.log('Index: ' + i + ', element: ' + arr[i]);
}, 3000);
import jenkins.model.* | |
import hudson.model.* | |
import jenkins.plugins.nodejs.tools.* | |
import hudson.tools.* | |
def inst = Jenkins.getInstance() | |
def desc = inst.getDescriptor("jenkins.plugins.nodejs.tools.NodeJSInstallation") | |
def versions = [ |
/* | |
Borders | |
- - - - - - - - - - - - - - - - - - - - - - - - - | |
Helper classes for adding borders to elements | |
Class names follow this convention: | |
.[type][direction][size] |
/* | |
Spacing | |
- - - - - - - - - - - - - - - - - - - - - - - - - | |
Helper classes for spacing like margin and padding. | |
Class names follow this convention: | |
.[type][direction][size] |
'use strict'; | |
const request = require('request'); | |
module.exports = function forward(req, res, next) { | |
var myRequest = request({ | |
url: req.url, | |
headers: req.headers | |
}); | |
req.pipe(myRequest) |
const path = require('path') | |
, Umzug = require('umzug') | |
, Bluebird = require('bluebird') | |
const db = { | |
// sequelize instance | |
sequelize: null, | |
// Sequelize constructor | |
Sequelize: null | |
}; |
#!groovy | |
/** | |
* Requires tool definitions for nodejs, jdk, maven, and ant | |
* Requires config files .npmrc and maven-settings.xml | |
*/ | |
node() { | |
// checkout clean code | |
stage("checkout") { | |
checkout scm |