Created
April 18, 2018 08:38
-
-
Save rayworks/bd4cd60a728ae761baf81188285ae459 to your computer and use it in GitHub Desktop.
Multiple apks generated with different channel ids via Jenkins scripts
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
next=`cat /jenkins-jobs/your-job/nextBuildNumber` | |
one='1' | |
no=`echo $((next - one))` | |
rc=`ls /jenkins-jobs/your-job/builds/${no}/archive/app/build/outputs/apk/ | grep "app-live-release"` | |
java -jar /packer-tool-path/packer-ng-plugin/tools/packer-ng-2.0.0.jar generate --channels=google \ | |
--output=/jenkins-jobs/your-job/builds/${no}/archive/app/build/outputs/apk/channel/ \ | |
/jenkins-jobs/your-job/builds/${no}/archive/app/build/outputs/apk/${rc} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment