Skip to content

Commit 0a4cddd

Browse files
authored
Update config.yml to store maven artifacts from build (#653)
1 parent 636ac6c commit 0a4cddd

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

.circleci/config.yml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -213,13 +213,13 @@ jobs:
213213
214214
release_maven:
215215
macos:
216-
xcode: "10.1.0" #xocde version number does not matter here, we just need a macos image
216+
xcode: "10.1.0" # Xcode version number does not matter here, we just need a MacOS image
217217
steps:
218218
- checkout
219219
- configure_aws
220220
- set_enviroment_vairables
221221
- run:
222-
name: install android sdk tools
222+
name: Install Android SDK tools
223223
command: |
224224
HOMEBREW_LOGS=~/homebrew-logs
225225
HOMEBREW_TEMP=~/homebrew-temp
@@ -228,20 +228,20 @@ jobs:
228228
brew tap caskroom/cask
229229
brew cask install android-sdk
230230
- run:
231-
name: install android build tools
231+
name: Install Android build tools
232232
command: |
233233
sudo yes | /usr/local/bin/sdkmanager "platforms;android-21" "platforms;android-27" "build-tools;27.0.1" "extras;google;m2repository" "extras;android;m2repository"
234234
/usr/local/bin/sdkmanager --update
235235
- run:
236-
name: Install gpg
236+
name: Install GPG
237237
command: |
238238
brew install gnupg
239239
- run:
240-
name: install maven
240+
name: Install Maven
241241
command: |
242242
brew install maven
243243
- run:
244-
name: Set environment
244+
name: Set environment variables
245245
command: |
246246
echo ~
247247
ls /usr/local/share/android-sdk
@@ -254,7 +254,7 @@ jobs:
254254
echo 'export ANDROID_PLATFORM="27"' >> $BASH_ENV
255255
echo 'export ANDROID_BUILDTOOL_VERSION="27.0.1"' >> $BASH_ENV
256256
- run:
257-
name: download gpghome
257+
name: Download gpghome
258258
command: |
259259
aws s3 cp s3://android-circleci-payload/gpghome/gpghome.zip gpghome.zip
260260
unzip -a gpghome.zip
@@ -266,13 +266,14 @@ jobs:
266266
echo "$ANDROID_HOME"
267267
echo "$M2_HOME"
268268
bash CircleciScripts/maven_release.sh
269-
270-
269+
mkdir m2
270+
cp -r $M2_HOME m2
271+
- store_artifacts:
272+
path: m2
271273
# - run:
272274
# name: upload to maven
273275
# command: |
274276
# python3 CircleciScripts/s3_maven.py "$(pwd)" $release_version android_sdk_release "$release_bucket/com/amazonaws"
275-
276277

277278
release_s3:
278279
docker:
@@ -284,21 +285,21 @@ jobs:
284285
- configure_aws
285286
- set_enviroment_vairables
286287
- run:
287-
name: copy sdk resource
288+
name: Copy SDK resource files
288289
command: |
289290
mkdir -p "$sdkNameWithVersion"
290291
python3 CircleciScripts/copy_resourcefiles.py "$(pwd)" "$(pwd)/$sdkNameWithVersion"
291292
- restore_cache:
292293
key: Libs-{{ .Revision }}
293294
- run:
294-
name: copy libs
295+
name: Copy libs
295296
command: |
296297
mkdir -p "$sdkNameWithVersion/lib"
297298
cp -R /home/circleci/code/lib/* "$sdkNameWithVersion/lib"
298299
- restore_cache:
299300
key: API-Reference-{{ .Revision }}
300301
- run:
301-
name: copy documents
302+
name: Copy API reference
302303
command: |
303304
mkdir -p "$sdkNameWithVersion/documentation/javadoc"
304305
cp -R docs/reference/* "$sdkNameWithVersion/documentation/javadoc"
@@ -318,9 +319,9 @@ jobs:
318319
name: copy zip file
319320
command: |
320321
mkdir -p sdkfiles
321-
cp "$sdkNameWithVersion.zip" "sdkfiles/$sdkNameWithVersion.zip"
322+
cp "$sdkNameWithVersion.zip" "sdkfiles/$sdkNameWithVersion.zip"
322323
- store_artifacts:
323-
path: sdkfiles
324+
path: sdkfiles
324325
- run:
325326
name: check current release release_type
326327
command: |

0 commit comments

Comments
 (0)