I hereby claim:
- I am christ66 on github.
- I am schristou88 (https://keybase.io/schristou88) on keybase.
- I have a public key whose fingerprint is 0D0F 0770 3370 1BDF 2ECF DF28 8506 CC6B 684E AC67
To claim this, I am signing this object:
goInsideFolder(Jenkins.instance.items) | |
public void goInsideFolder(List<TopLevelItem> items) { | |
for ( TopLevelItem item : items) { | |
if (item instanceof com.cloudbees.hudson.plugins.folder.Folder) { | |
goInsideFolder(item.getItems()); | |
} | |
else { | |
println item.fullName; | |
} |
public class MyTest { | |
public void test1() { | |
this.<String>test(); | |
} | |
public String test() { return "test"; } | |
} |
I hereby claim:
To claim this, I am signing this object:
~ % java -version | |
java version "1.8.0_74" | |
Java(TM) SE Runtime Environment (build 1.8.0_74-b02) | |
Java HotSpot(TM) 64-Bit Server VM (build 25.74-b02, mixed mode) |
INSTALLATION | |
Copy jenkins-slave.init to /etc/init.d/jenkins-slave and copy jenkins-slave to /etc/sysconfig/jenkins-slave. | |
cp jenkins-slave.init /etc/init.d/jenkins-slave | |
cp jenkins-slave /etc/sysconfig/jenkins-slave | |
chkconfig jenkins-slave on | |
service jenkins-slave start | |
Change the values of /etc/sysconfig/jenkins-slave to match your environment needs. |
from github import Github | |
import sys | |
from os.path import expanduser | |
import os | |
from git import Repo, GitCommandError | |
f = open(expanduser("~/.github"), "r") | |
token = f.readline()[len("oauth="):].lstrip().rstrip() | |
g = Github(token) | |
user = g.get_user() |
Files with .brs
should now have syntax highlighting.
[Unit] | |
Description=Jenkins Daemon | |
[Service] | |
Type=forking | |
ExecStart=/usr/bin/java -Djava.awt.headless=true -DJENKINS_HOME=/var/lib/jenkins/home -jar /opt/jenkins/jenkins.war --daemon --logfile=/var/log/jenkins/jenkins.log --httpPort=8080 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20 --accessLoggerClassName=winstone.accesslog.SimpleAccessLogger --simpleAccessLogger.format=combined --simpleAccessLogger.file=/var/log/jenkins/access_log | |
User=jenkins | |
Restart=always | |
[Install] |
[Unit] | |
Description=Jenkins Daemon | |
[Service] | |
Type=forking | |
ExecStart=/usr/bin/java -Djava.awt.headless=true -DJENKINS_HOME=/var/lib/jenkins/home -jar /opt/jenkins/jenkins.war --daemon --logfile=/var/log/jenkins/jenkins.log --httpPort=8080 --debug=5 --handlerCountMax=100 --handlerCountMaxIdle=20 --accessLoggerClassName=winstone.accesslog.SimpleAccessLogger --simpleAccessLogger.format=combined --simpleAccessLogger.file=/var/log/jenkins/access_log | |
User=jenkins | |
Restart=always | |
[Install] |
def daysToKeep = 0 | |
def numToKeep = 0 | |
def artifactDaysToKeep = 0 | |
def artifactNumToKeep = 0 | |
Jenkins.instance.getAllItems(AbstractProject.class).each{ it -> | |
it.setBuildDiscarder(new LogRotator(daysToKeep, numToKeep, artifactDaysToKeep, artifactNumToKeep)) | |
}; |