Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
jenkins script for android sdk license
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
You can’t perform that action at this time.