Skip to content

Instantly share code, notes, and snippets.

prasathsivasubramaniyan

Block or report user

Report or block prasathsivasubramaniyan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@prasathsivasubramaniyan
prasathsivasubramaniyan / gist:c102335f1851529325f94a8309c40956
Created Feb 16, 2017 — forked from whittlec/gist:6112643
Install plugins to Jenkins via script console
View gist:c102335f1851529325f94a8309c40956
for (plugin in ["ant",
"artifactdeployer",
"build-failure-analyzer",
"build-name-setter",
"build-pipeline-plugin",
"build-timeout",
"claim",
"clone-workspace-scm",
"cobertura",
"collapsing-console-sections",
View cleanup_custom_not_used_workspaces.groovy
import jenkins.*
import jenkins.model.*
import hudson.*
import hudson.model.*
def DRY_RUN = false
def DIRS_FILTER = ['.hg', 'production','logs','apache', 'projects', 'qlickview']
def JOBS_WS_ROOT = 'path-to-your-workspaces-root-dir'
def JOBS_IRRELEVANT_SYMBOLS = "[_,-]|\\s"
def allJobs = Jenkins.instance.items.findAll { it instanceof hudson.model.Job }.collect { it.name };
View installantoncentos.sh
# download and install
antversion=1.7.1
wget http://archive.apache.org/dist/ant/binaries/apache-ant-${antversion}-bin.tar.gz
sudo tar xvfvz apache-ant-${antversion}-bin.tar.gz -C /opt
sudo ln -sfn /opt/apache-ant-${antversion} /opt/ant
sudo sh -c 'echo ANT_HOME=/opt/ant >> /etc/environment'
sudo ln -sfn /opt/ant/bin/ant /usr/bin/ant
# check installation
ant -version
@prasathsivasubramaniyan
prasathsivasubramaniyan / sysinfo.sh
Created Dec 20, 2016 — forked from parzonka/sysinfo.sh
Get linux system info and version
View sysinfo.sh
# architecture #
lscpu
# release #
# RHEL, CentOS
cat /etc/redhat-release
# Ubuntu
cat /etc/issue
lsb_release -a
View install_oracle_jdk_on_ubuntu.sh
#!/bin/bash
JDK_URL=http://download.oracle.com/otn-pub/java/jdk/8u74-b02/jdk-8u74-linux-x64.tar.gz
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" $JDK_URL
sudo mkdir -p /opt/jdk
sudo tar -zxf jdk-8u74-linux-x64.tar.gz -C /opt/jdk
sudo update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_74/bin/java 100
rm jdk-8u74-linux-x64.tar.gz
@prasathsivasubramaniyan
prasathsivasubramaniyan / jdk-mvn-ubuntu.sh
Created Dec 20, 2016 — forked from parzonka/jdk-mvn-ubuntu.sh
install jdk and maven for ubuntu
View jdk-mvn-ubuntu.sh
#!/bin/bash
# jdk
sudo su root
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u73-b02/jdk-8u73-linux-x64.tar.gz
tar -zxf jdk-8u73-linux-x64.tar.gz -C /opt
update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_73/bin/java 100
echo 'export JAVA_HOME=/opt/jdk1.8.0_73' >> /home/ubuntu/.bash_profile
rm jdk-8u73-linux-x64.tar.gz
View install-gradle-centos.sh
# installs to /opt/gradle
# existing versions are not overwritten/deleted
# seamless upgrades/downgrades
# $GRADLE_HOME points to latest *installed* (not released)
gradle_version=2.9
wget -N https://services.gradle.org/distributions/gradle-${gradle_version}-all.zip
sudo unzip -foq gradle-${gradle_version}-all.zip -d /opt/gradle
sudo ln -sfn gradle-${gradle_version} /opt/gradle/latest
sudo printf "export GRADLE_HOME=/opt/gradle/latest\nexport PATH=\$PATH:\$GRADLE_HOME/bin" > /etc/profile.d/gradle.sh
. /etc/profile.d/gradle.sh
You can’t perform that action at this time.