File tree Expand file tree Collapse file tree 4 files changed +18
-11
lines changed Expand file tree Collapse file tree 4 files changed +18
-11
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,6 @@ stages:
69
69
vmImage : $(imageName)
70
70
steps :
71
71
- template : ci/tiledb-java-windows-release.yml
72
-
73
72
- stage : Release
74
73
condition : startsWith(variables['Build.SourceBranch'], 'refs/tags')
75
74
jobs :
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ plugins {
10
10
}
11
11
12
12
group ' io.tiledb'
13
- version ' 0.2.8-SNAPSHOT'
13
+ version ' 0.2.8-test4- SNAPSHOT'
14
14
15
15
repositories {
16
16
jcenter()
@@ -20,11 +20,6 @@ repositories {
20
20
}
21
21
}
22
22
23
- nexusStaging {
24
- username = System . getenv(' SONATYPE_USERNAME' )
25
- password = System . getenv(' SONATYPE_PASSWORD' )
26
- }
27
-
28
23
sourceCompatibility = 1.8
29
24
targetCompatibility = 1.8
30
25
@@ -158,6 +153,7 @@ artifacts {
158
153
import org.gradle.plugins.signing.Sign
159
154
gradle. taskGraph. whenReady { taskGraph ->
160
155
if (taskGraph. allTasks. any { it instanceof Sign }) {
156
+ println System . getenv(' GPG_KEY_ID' )
161
157
allprojects { ext. " signing.keyId" = System . getenv(' GPG_KEY_ID' ) }
162
158
allprojects { ext. " signing.secretKeyRingFile" = System . getenv(' GPG_KEY_LOCATION' ) }
163
159
allprojects { ext. " signing.password" = System . getenv(' GPG_PASSPHRASE' ) }
Original file line number Diff line number Diff line change 5
5
- bash : |
6
6
unset SYSTEM
7
7
set +e
8
+
8
9
mv ../libraries/* .
9
10
10
11
mkdir -p ./build/install/lib
@@ -58,4 +59,16 @@ steps:
58
59
inputs :
59
60
pathtoPublish : $(Build.BinariesDirectory)
60
61
artifactName : final-jar
61
- condition : succeeded()
62
+ condition : succeeded()
63
+
64
+ - bash : |
65
+ echo "USERNAME"
66
+ echo $SONATYPE_USERNAME
67
+ ./ci/upload_to_maven.sh
68
+ env:
69
+ GPG_KEY_ID: $(GPG_KEY_ID)
70
+ GPG_PASSPHRASE: $(GPG_PASSPHRASE)
71
+ GPG_SECRET_KEYS_ENC: $(GPG_SECRET_KEYS_ENC)
72
+ SONATYPE_USERNAME: $(SONATYPE_USERNAME)
73
+ SONATYPE_PASSWORD: $(SONATYPE_PASSWORD)
74
+ displayName: "Publish"
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
+ export GPG_KEY_LOCATION=$( pwd) /encrypted.key
3
4
echo " Starting upload to maven"
4
- mkdir .travis
5
- echo " ${GPG_SECRET_KEYS_ENC} " | base64 --decode > ${ENCRYPTED_GPG_KEY_LOCATION}
6
- openssl aes-256-cbc -K $encrypted_a2869fb015d7_key -iv $encrypted_a2869fb015d7_iv -in $ENCRYPTED_GPG_KEY_LOCATION -out $GPG_KEY_LOCATION -d
5
+ echo " ${GPG_SECRET_KEYS_ENC} " | base64 --decode > $GPG_KEY_LOCATION
7
6
./gradlew properties -q | grep " version:" | awk ' {print $2}'
8
7
export PROJECT_VERSION=$( ./gradlew properties -q | grep " version:" | awk ' {print $2}' )
9
8
# Upload only snapshots to sonatype oss so it can make its way to maven central
You can’t perform that action at this time.
0 commit comments