Skip to content

Instantly share code, notes, and snippets.

@Avinash-Bhat
Created September 27, 2016 11:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Avinash-Bhat/9b8db115e8acf24ee4d1ca28298a751f to your computer and use it in GitHub Desktop.
Save Avinash-Bhat/9b8db115e8acf24ee4d1ca28298a751f to your computer and use it in GitHub Desktop.
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