Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Wrong branch] [Backport 5.x] Refactoring var scopes in uploadMinSnapshotsToS3 libs #322

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
c2d2bc2
Update base branch to 5.x (#242)
gaiksaya Jul 7, 2023
de8ea90
Accept workload-params argument as json and preserve double-quotes (#…
rishabh6788 Jul 10, 2023
8776b89
Add docker login for both source and dest registries (#249)
peterzhuamazon Jul 19, 2023
5b00d67
Make docker command detection consistently across OSes (#254)
peterzhuamazon Jul 26, 2023
a312326
Update the `AUTOCUT` issues with the latest build fail information (#…
prudhvigodithi Jul 27, 2023
39f1327
Fix trigger branch for version increment (#260)
gaiksaya Jul 28, 2023
081bf34
Fix the README (#261)
prudhvigodithi Jul 28, 2023
9539179
Fix the hardcoded query string bug for closeBuildSuccessGithubIssue (…
prudhvigodithi Jul 28, 2023
99c487d
Update code to handle data node instance type parameter (#271)
rishabh6788 Aug 14, 2023
1db86aa
Add support for continue-on-error flag for build and add tests cases …
gaiksaya Aug 15, 2023
8cede32
Add parameter to capture segment replication stats (#273)
rishabh6788 Aug 15, 2023
f184ed3
Fix return for build Failure messages (#275)
gaiksaya Aug 15, 2023
5a9c3ca
Fix build log parsing for GH issue creation (#279)
gaiksaya Aug 18, 2023
be4e5cd
Docker Patch Library to support Docker re-release Automation (#268)
Divyaasm Aug 18, 2023
b5c7537
Add library to create test report manifest (#270)
zelinh Aug 18, 2023
7c40edc
Add jar signer specs to signArtifacts (#280)
gaiksaya Aug 18, 2023
8fe7f4d
Add jar_signer to the list (#286)
gaiksaya Aug 21, 2023
7ba57c3
Add support to pass telemetry-params to opensearch-benchmark (#289)
rishabh6788 Aug 22, 2023
2e02402
Default the shell to bash for all signers (#293)
gaiksaya Aug 22, 2023
28ee92f
Fix the base path for report workflow on dashboards (#295)
zelinh Aug 24, 2023
560f671
Update rubygems signature varification to ensure all dependencies are…
peterzhuamazon Aug 25, 2023
e4e7078
[NodeJS18 Upgrade] Add AL2023 Docker Images Selection by BuildDocker …
peterzhuamazon Sep 6, 2023
96b32c7
Add Windows IntegTest support on Jenkins Libs (#308)
peterzhuamazon Sep 13, 2023
63eb337
Refactor integTest java version handling logic for all distributions …
peterzhuamazon Sep 15, 2023
5575d70
Refactoring var scopes in uploadMinSnapshotsToS3 libs (#318)
peterzhuamazon Oct 4, 2023
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
3 changes: 2 additions & 1 deletion .github/workflows/version-increment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
paths:
- build.gradle
branches: main
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -32,7 +33,7 @@ jobs:
uses: peter-evans/create-pull-request@v4
with:
token: ${{ steps.github_app_token.outputs.token }}
base: '4.x'
base: '5.x'
committer: opensearch-ci-bot <[email protected]>
author: opensearch-ci-bot <[email protected]>
commit-message: |
Expand Down
2 changes: 1 addition & 1 deletion DEVELOPER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Jenkins workflow regression tests typically output a .txt file into [tests/jenki
For example, [TestHello.groovy](tests/jenkins/TestHello.groovy) executes [Hello_Jenkinsfile](tests/jenkins/jobs/Hello_Jenkinsfile)
and outputs [Hello_Jenkinsfile.txt](tests/jenkins/jobs/Hello_Jenkinsfile.txt). If the job execution changes, the regression test will fail.

- To update the recorded .txt file run `./gradlew test -info -Ppipeline.stack.write=true` or update its value in [gradle.properties](gradle.properties).
- To update the recorded .txt file run `./gradlew test -info -Dpipeline.stack.write=true` or update its value in [gradle.properties](gradle.properties).

- To run a specific test case, run `./gradlew test -info --tests=TestCaseClassName`

Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ lib = library(identifier: 'jenkins@<tag>', retriever: modernSCM([
| [publishToMaven.groovy](./vars/publishToMaven.groovy) | A library to sign and deploy opensearch maven artifacts to sonatype staging repository, it also has an optional parameter `autoPublish` to auto-release artifacts from staging repo to prod without manual intervention. You can use [PublishToMavenLibTester](./tests/jenkins/lib-testers/PublishToMavenLibTester.groovy) to add tests in your repository. See how to use the lib in your [jenkinsFile](./tests/jenkins/jobs/PublishToMaven_JenkinsFile). |
| [publishToNuget.groovy](./vars/publishToNuget.groovy) | A library to build, sign and publish dotnet artifacts to [Nuget Gallery](https://www.nuget.org/). Please check if the [default docker](https://github.com/opensearch-project/opensearch-build/blob/main/docker/ci/dockerfiles/current/release.centos.clients.x64.arm64.dockerfile) file contains the required dotnet sdk. You can use [PublishToNugetLibTester](./tests/jenkins/lib-testers/PublishToNugetLibTester.groovy) to add tests in your repository. See how to use the lib in your [jenkinsFile](./tests/jenkins/jobs/PublishToNuget_Jenkinsfile).
| [publishToArtifactsProdBucket.groovy](./vars/publishToArtifactsProdBucket.groovy) | This library signs and uploads the artifacts to production S3 bucket which points to artifacts.opensearch.org. Please make sure the role that you use to upload exists and has the right permission. For artifacts of different types like macos, linux and windows, call this lib for each artifact with different signing parameters. You can use [PublishToArtifactsProdBucketLibTester](./tests/jenkins/lib-testers/PublishToArtifactsProdBucketLibTester.groovy) to add tests in your repository. See how to use the lib in your [jenkinsFile](./tests/jenkins/jobs/PublishToArtifactsProdBucket_Jenkinsfile).
| [buildMessage.groovy](./vars/buildMessage.groovy) | This library that can parse the jenkins build log based on the user defined input query string.
| [closeBuildSuccessGithubIssue.groovy](./vars/closeBuildSuccessGithubIssue.groovy) | This library that identifies the successfully built components and closes the created [AUTOCUT] issues.
| [createGithubIssue.groovy](./vars/createGithubIssue.groovy) | This library that identifies the failed components and creates the [AUTOCUT] issues.

## Contributing

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ jacocoTestReport {
}
}

String version = '5.0.0'
String version = '5.9.2'

task updateVersion {
doLast {
Expand Down
4 changes: 4 additions & 0 deletions src/jenkins/BuildManifest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ class BuildManifest implements Serializable {
return this.build.architecture
}

public String getArtifactPlatform() {
return this.build.platform
}

public String getArtifactBuildId() {
return this.build.id
}
Expand Down
2 changes: 1 addition & 1 deletion tests/data/opensearch-1.3.0-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
build:
platform: linux
architecture: x64
id: c3ff7a232d25403fa8cc14c97799c323
id: 29
name: OpenSearch
version: 1.3.0
distribution: tar
Expand Down
12 changes: 12 additions & 0 deletions tests/data/opensearch-2.0.0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,15 @@ components:
checks:
- gradle:properties:version
- gradle:dependencies:opensearch.version
- name: geospatial
repository: https://github.com/opensearch-project/geospatial.git
ref: '2.0'
checks:
- gradle:properties:version
- gradle:dependencies:opensearch.version
- name: performance-analyzer
repository: https://github.com/opensearch-project/performance-analyzer.git
ref: '2.0'
checks:
- gradle:properties:version
- gradle:dependencies:opensearch.version
Loading