Created
September 27, 2016 11:19
-
-
Save Avinash-Bhat/9b8db115e8acf24ee4d1ca28298a751f to your computer and use it in GitHub Desktop.
jenkins script for android sdk license
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
def dir = new File('path_to_sdk') | |
def licenses = new File(dir, 'licenses') | |
if (!licenses.exists()) licenses.mkdir() | |
dir.listFiles().each { println it } | |
def pw = new PrintWriter(new File(licenses, 'android-sdk-license')) | |
pw.println('8933bad161af4178b1185d1a37fbf41ea5269c55') | |
pw.close() | |
pw = new PrintWriter(new File(licenses, 'android-sdk-preview-license')) | |
pw.println('84831b9409646a918e30573bab4c9c91346d8abd') | |
pw.close() | |
licenses.listFiles().each { println it } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment