File tree Expand file tree Collapse file tree 3 files changed +7
-14
lines changed
Expand file tree Collapse file tree 3 files changed +7
-14
lines changed Original file line number Diff line number Diff line change 3232 export-env : true
3333 env :
3434 OP_SERVICE_ACCOUNT_TOKEN : ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
35- MAVEN_SNAPSHOTS_S3_REPO : op://opensearch-infra-secrets/maven-snapshots-s3/repo
36- MAVEN_SNAPSHOTS_S3_ROLE : op://opensearch-infra-secrets/maven-snapshots-s3/role
37-
38- - name : Configure AWS credentials
39- uses : aws-actions/configure-aws-credentials@v5
40- with :
41- role-to-assume : ${{ env.MAVEN_SNAPSHOTS_S3_ROLE }}
42- aws-region : us-east-1
35+ SONATYPE_USERNAME : op://opensearch-infra-secrets/maven-central-portal-credentials/username
36+ SONATYPE_PASSWORD : op://opensearch-infra-secrets/maven-central-portal-credentials/password
4337
4438 - name : Publish snapshots to maven
4539 run : |
Original file line number Diff line number Diff line change @@ -119,11 +119,10 @@ subprojects {
119119 }
120120 maven {
121121 name = ' Snapshots'
122- url = System . getenv(" MAVEN_SNAPSHOTS_S3_REPO" )
123- credentials(AwsCredentials ) {
124- accessKey = System . getenv(" AWS_ACCESS_KEY_ID" )
125- secretKey = System . getenv(" AWS_SECRET_ACCESS_KEY" )
126- sessionToken = System . getenv(" AWS_SESSION_TOKEN" )
122+ url = ' https://central.sonatype.com/repository/maven-snapshots/'
123+ credentials {
124+ username = System . getenv(" SONATYPE_USERNAME" )
125+ password = System . getenv(" SONATYPE_PASSWORD" )
127126 }
128127 }
129128 }
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ testClusters {
6767 project. repositories {
6868 maven {
6969 name = ' OpenSearch Snapshots'
70- url = ' https://ci.opensearch.org/ci/dbc/snapshots/ maven/'
70+ url = ' https://central.sonatype.com/repository/ maven-snapshots /'
7171 }
7272 }
7373 if (p. contains(' :' )) {
You can’t perform that action at this time.
0 commit comments