This file contains hidden or 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/zsh | |
echo "Bootstrapping Android & Java" | |
echo "Setting up PATH" | |
echo "# Android SDK" >> ~/.zshrc | |
echo "export ANDROID_HOME=\$HOME/Library/Android/sdk" >> ~/.zshrc | |
echo "export PATH=\$PATH:\$ANDROID_HOME/emulator" >> ~/.zshrc | |
echo "export PATH=\$PATH:\$ANDROID_HOME/platform-tools" >> ~/.zshrc | |
echo "\n" >> ~/.zshrc |
This file contains hidden or 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
Jenkins.instance.getAllItems(AbstractProject.class).each { project -> | |
def jobName = project.fullName | |
def job = Jenkins.instance.getItemByFullName(jobName) | |
if (job) { | |
println("Found Job : ${job.name}"); | |
job.getBuilds().each { build -> | |
println("- Deleting #${build.number}"); | |
build.delete() | |
} |