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
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 |
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
// 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' |