Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ stages:
vmImage: $(imageName)
steps:
- template: ci/tiledb-java-windows-release.yml

- stage: Release
condition: startsWith(variables['Build.SourceBranch'], 'refs/tags')
jobs:
Expand Down
15 changes: 14 additions & 1 deletion ci/tiledb-java-final-jar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ steps:
- bash: |
unset SYSTEM
set +e

mv ../libraries/* .

mkdir -p ./build/install/lib
Expand Down Expand Up @@ -58,4 +59,16 @@ steps:
inputs:
pathtoPublish: $(Build.BinariesDirectory)
artifactName: final-jar
condition: succeeded()
condition: succeeded()

- bash: |
echo "USERNAME"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove?

echo $SONATYPE_USERNAME
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove?

./ci/upload_to_maven.sh
env:
GPG_KEY_ID: $(GPG_KEY_ID)
GPG_PASSPHRASE: $(GPG_PASSPHRASE)
GPG_SECRET_KEYS_ENC: $(GPG_SECRET_KEYS_ENC)
SONATYPE_USERNAME: $(SONATYPE_USERNAME)
SONATYPE_PASSWORD: $(SONATYPE_PASSWORD)
displayName: "Publish"
5 changes: 2 additions & 3 deletions ci/upload_to_maven.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#!/usr/bin/env bash

export GPG_KEY_LOCATION=$(pwd)/encrypted.key
echo "Starting upload to maven"
mkdir .travis
echo "${GPG_SECRET_KEYS_ENC}" | base64 --decode > ${ENCRYPTED_GPG_KEY_LOCATION}
openssl aes-256-cbc -K $encrypted_a2869fb015d7_key -iv $encrypted_a2869fb015d7_iv -in $ENCRYPTED_GPG_KEY_LOCATION -out $GPG_KEY_LOCATION -d
echo "${GPG_SECRET_KEYS_ENC}" | base64 --decode > $GPG_KEY_LOCATION
./gradlew properties -q | grep "version:" | awk '{print $2}'
export PROJECT_VERSION=$(./gradlew properties -q | grep "version:" | awk '{print $2}')
# Upload only snapshots to sonatype oss so it can make its way to maven central
Expand Down