Skip to content

Commit 55a38de

Browse files
Revert "[Backport 3.3] Onboarding new maven snapshots publishing to s3 (OpenSearch Core) (#19668)"
This reverts commit f343562.
1 parent d90ecec commit 55a38de

File tree

3 files changed

+7
-14
lines changed

3 files changed

+7
-14
lines changed

.github/workflows/publish-maven-snapshots.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,8 @@ jobs:
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: |

build.gradle

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

gradle/run.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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(':')) {

0 commit comments

Comments
 (0)