Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
1) http://techblog.netflix.com/2015/11/linux-performance-analysis-in-60s.html | |
2) Jenkins SSH slaves | |
https://docs.google.com/document/d/1Qq-EkiUnC5x8BuM4AZWo-yRUQTrkberzz8JfdCM6yuc/edit | |
3) http://techblog.roomkey.com/posts/too-many-files.html |
1) Overide entry point of docker image | |
docker run -ti --entrypoint=/bin/bash my/image -s |
Set-ExecutionPolicy Unrestricted | |
# Jenkins plugin will dynamically pass the server name and vm name. | |
# If your jenkins server is configured for security , make sure to edit command for how slave executes | |
# You may need to pass credentails or secret in the command , Refer to help by running "java -jar slave.jar --help" | |
$jenkinsserverurl = $args[0] | |
$vmname = $args[1] | |
# Download the file to a specific location | |
Write-Output "Downloading zulu SDK " |
Install .NET from command line | |
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All |
rsync -am --include='config.xml' --include='*/' --exclude='*' Source/ Destination/ |
1) Edit /etc/ssh/sshd_config | |
2) Add below so that sshd listens on both port 22 and 443 | |
Port 22 | |
Port 443 | |
3) Load config and restart service | |
sudo service sshd reload | |
sudo service sshd restart |
git config --global url."https://github.com/".insteadOf git@github.com |
http://linuxaria.com/howto/linux-memory-management | |
https://linuxaria.com/howto/understanding-the-top-command-on-linux |
Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
<Connector port="80" protocol="HTTP/1.1" | |
connectionTimeout="20000" | |
redirectPort="443" /> | |
<Connector protocol="org.apache.coyote.http11.Http11Protocol" | |
socketBuffer="500000" | |
tcpNoDelay="true" | |
port="443" maxThreads="200" | |
scheme="https" secure="true" SSLEnabled="true" | |
keystoreFile="conf\tomcatNEW.keystore" keystorePass="changeit" |