Skip to content

Instantly share code, notes, and snippets.

View Soggywaters's full-sized avatar

Rob Soggywaters

  • USA
View GitHub Profile
@Soggywaters
Soggywaters / Jenkins-Android custom tool script
Last active August 22, 2019 15:24
A shell script to download and install an Android SDK through Jenkin custom tools
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
@Soggywaters
Soggywaters / Jenkinsfile
Last active August 22, 2019 15:24
An example Jenkins declarative file to pull in the Android SDK custom tool.
// 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'