Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-45993

Sign multiple flavors.

XMLWordPrintable

      Hello,

      I have successfully signed an Android unsigned apk using the Android Signing Plugin using the following pipeline script. However, my project has multiple flavors and I would like to sign each of them with a different keystore. I could not find the approach to sign multiple apks with different keystores in a single Jenkins pipeline job. Any help would be very much appreciated.

       

      {{ // ... steps to build unsigned APK ... signAndroidApks ( keyStoreId: "myApp.signerKeyStore", keyAlias: "myTeam", apksToSign: "*/-unsigned.apk" // you can override these within the script if necessary // androidHome: env.ANDROID_HOME // zipalignPath: env.ANDROID_ZIPALIGN )}}

            restjohn Robert St. John
            phanitejachowdary Phaniteja Nunna
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: