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
# -*- coding: utf-8 -*- | |
# file: jenkins-install.sh | |
# prepare | |
[ -d "/tmp/jenkins" ] || mkdir -p /tmp/jenkins | |
# setup | |
wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo | |
rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key |
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
#! /bin/sh | |
# roleback version | |
VERSION=$1 | |
# directory that contains the jenkins.war | |
JENKINS_WAR_DIR=/usr/share/jenkins | |
# Absolute path the jenkins.war | |
JENKINS_WAR=${JENKINS_WAR_DIR}/jenkins.war |
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
#! /bin/sh | |
# directory that contains the jenkins.war | |
JENKINS_WAR_DIR=/usr/share/jenkins | |
# Absolute path the jenkins.war | |
JENKINS_WAR=${JENKINS_WAR_DIR}/jenkins.war | |
# Absolute path the jenkins.war for backup | |
JENKINS_BACKUP_WAR=/tmp/jenkins.war.bak |
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
#!/bin/bash | |
export PATH=$PATH:${ANDROID_SDK_PATH}/tools | |
USER="your proxy-user" | |
PASS="your proxy-password " | |
PROXY_HOST="your proxy-host" | |
PROXY_PORT="your proxy-port" | |
expect -c " | |
spawn android update sdk -u -s --proxy-host ${PROXY_HOST} --proxy-port ${PROXY_PORT} |