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
14 changes: 7 additions & 7 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
name: Draft a release
runs-on: ubuntu-latest
permissions:
issues: write # trstringer/manual-approval
contents: write # softprops/action-gh-release
issues: write
contents: write
steps:
- name: Checkout code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
Expand Down Expand Up @@ -39,9 +39,9 @@ jobs:
echo Building the version: $VERSION
./gradlew --no-daemon publishPublishMavenPublicationToLocalRepoRepository && tar -C build -cvf artifacts.tar.gz repository
- name: Draft a release
uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3
uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd
with:
draft: true
generate_release_notes: true
files: |
artifacts.tar.gz
immutableCreate: true
generateReleaseNotes: true
artifacts: "artifacts.tar.gz"
prerelease: true
2 changes: 1 addition & 1 deletion RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Assuming the following current state.

### Automated Release

The [release-drafter workflow](.github/workflows/release-drafter.yml) will be automatically kicked off and is responsible for drafting a new release on GitHub containing release artifacts. Before creating a draft release, this workflow creates a GitHub issue asking for approval from the [maintainers](MAINTAINERS.md). See sample [issue](https://github.com/gaiksaya/opensearch-java/issues/1). The maintainers need to approve in order to continue the workflow run. Once a release is drafted [opensearch-java-maven-sign-and-release](https://build.ci.opensearch.org/job/opensearch-java-maven-sign-and-release/) Jenkins workflow is triggered. The artifacts will be automatically signed and published to maven.
The [release-drafter workflow](.github/workflows/release-drafter.yml) will be automatically kicked off and is responsible for drafting a new pre-release on GitHub containing release artifacts. Before creating a release, this workflow creates a GitHub issue asking for approval from the [maintainers](MAINTAINERS.md). See sample [issue](https://github.com/opensearch-project/opensearch-java/issues/2000). The maintainers need to approve in order to continue the workflow run. Once a pre-release is created [opensearch-java-maven-sign-and-release](https://build.ci.opensearch.org/job/opensearch-java-maven-sign-and-release/) Jenkins workflow is triggered. The artifacts will be automatically signed and published to maven. Once the above release workflow is successful, it creates a GitHub issue requesting maintainers to manually publish the pre-release to release on GitHub.

### CHANGELOG Entries

Expand Down
4 changes: 2 additions & 2 deletions java-client/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ buildscript {
gradlePluginPortal()
}
dependencies {
"classpath"(group = "org.opensearch.gradle", name = "build-tools", version = "3.7.0-SNAPSHOT")
"classpath"(group = "org.opensearch.gradle", name = "build-tools", version = "3.8.0-SNAPSHOT")
}
}

plugins {
java
`java-library`
`maven-publish`
id("com.github.jk1.dependency-license-report") version "3.1.2"
id("com.github.jk1.dependency-license-report") version "3.1.4"
id("org.owasp.dependencycheck") version "12.2.2"

id("opensearch-java.spotless-conventions")
Expand Down
4 changes: 2 additions & 2 deletions java-codegen/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ buildscript {
gradlePluginPortal()
}
dependencies {
"classpath"(group = "org.opensearch.gradle", name = "build-tools", version = "3.7.0-SNAPSHOT")
"classpath"(group = "org.opensearch.gradle", name = "build-tools", version = "3.8.0-SNAPSHOT")
}
}

plugins {
application
id("com.github.jk1.dependency-license-report") version "3.1.2"
id("com.github.jk1.dependency-license-report") version "3.1.4"
id("org.owasp.dependencycheck") version "12.2.2"
id("de.undercouch.download") version "5.7.0"

Expand Down
5 changes: 2 additions & 3 deletions jenkins/release.jenkinsFile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
lib = library(identifier: 'jenkins@12.0.0', retriever: modernSCM([
lib = library(identifier: 'jenkins@13.0.1', retriever: modernSCM([
$class: 'GitSCMSource',
remote: 'https://github.com/opensearch-project/opensearch-build-libraries.git',
]))
Expand All @@ -7,8 +7,7 @@ standardReleasePipelineWithGenericTrigger(
overrideDockerImage: 'opensearchstaging/ci-runner:release-centos7-clients-v4',
tokenIdCredential: 'jenkins-opensearch-java-generic-webhook-token',
causeString: 'A tag was cut on opensearch-project/opensearch-java repository causing this workflow to run',
downloadReleaseAsset: true,
publishRelease: true) {
downloadReleaseAsset: true) {
publishToMaven(
signingArtifactsPath: "$WORKSPACE/repository/",
mavenArtifactsPath: "$WORKSPACE/repository/",
Expand Down
Loading