Skip to content

Instantly share code, notes, and snippets.

Avatar

Rob hinhrt

  • USA
View GitHub Profile
@hinhrt
hinhrt / Jenkins-Android custom tool script
Last active Aug 22, 2019
A shell script to download and install an Android SDK through Jenkin custom tools
View Jenkins-Android custom tool script
echo "Setting proxies to connect to Google for SDK..."
## 1
export HTTP_PROXY="[proxyAddress]:[proxyPort]"
export HTTPS_PROXY="[proxyAddress]:[proxyPort]"
if [ ! -f "Android_SDK_tools_4333796/" ]; then
echo "Retrieving Android SDK CLI..."
## 2
curl -O https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip
@hinhrt
hinhrt / Jenkinsfile
Last active Aug 22, 2019
An example Jenkins declarative file to pull in the Android SDK custom tool.
View Jenkinsfile
// declarative pipeline
pipeline {
// Specify which agent to use
agent { any }
environment {
HTTP_PROXY = '[proxyAddress]:[proxyPortNumber]'
HTTPS_PROXY = '[proxyAddress]:[proxyPortNumber]'
JAVA_HOME = tool name: 'JDK_8u221_7-16-2019', type: 'hudson.model.JDK'
You can’t perform that action at this time.