Skip to content

Commit

Permalink
Fix android cd (#635)
Browse files Browse the repository at this point in the history
Co-authored-by: Steve Kim <[email protected]>
Co-authored-by: Steve Kim <[email protected]>
  • Loading branch information
3 people authored Jun 5, 2023
1 parent 35030d1 commit 89079c8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
classpath 'com.android.tools.build:gradle:7.0.0'
}
}

Expand Down
Empty file modified codebuild/cd/deploy-platform-specific-jars.sh
100644 → 100755
Empty file.
9 changes: 7 additions & 2 deletions codebuild/cd/deploy-snapshot-android.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
#!/bin/bash

set -ex
set -o pipefail # Make sure one process in pipe fail gets bubble up

git submodule update --init
cd ./android

GPG_KEY=$(cat /tmp/aws-sdk-common-runtime.key.asc)
# Publish to nexus
./gradlew -PsigningKey=$"$GPG_KEY" -PsigningPassword=$GPG_PASSPHRASE -PsonatypeUsername='aws-sdk-common-runtime' -PsonatypePassword=$ST_PASSWORD publishToAwsNexus closeAwsNexusStagingRepository | tee /tmp/android_deploy.log
../gradlew -PsigningKey=$"$GPG_KEY" -PsigningPassword=$GPG_PASSPHRASE -PsonatypeUsername='aws-sdk-common-runtime' -PsonatypePassword=$ST_PASSWORD publishToAwsNexus closeAwsNexusStagingRepository | tee /tmp/android_deploy.log
# Get the staging repository id and save it
cat /tmp/android_deploy.log | grep "Created staging repository" | cut -d\' -f2 | tee /tmp/android_repositoryId.txt
cat /tmp/android_deploy.log | grep "Created staging repository" | cut -d\' -f2 | tee /tmp/android_repositoryId.txt
2 changes: 1 addition & 1 deletion codebuild/cd/deploy-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ phases:
- bash ./codebuild/cd/deploy-platform-specific-jars.sh
- mvn nexus-staging:close -Prelease -DstagingRepositoryId=$STAGING_REPO_ID
# deploy android
- bash ./codebuild/cd/deploy-snapshot-android.sh
- ./codebuild/cd/deploy-snapshot-android.sh
post_build:
commands:

Expand Down

0 comments on commit 89079c8

Please sign in to comment.