-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move all release jenkins workflows under one folder (#4882)
Signed-off-by: Sayali Gaikawad <[email protected]>
- Loading branch information
Showing
24 changed files
with
27 additions
and
371 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,8 +49,8 @@ class TestReleaseManifestCommitLock extends BuildPipelineTest { | |
@Test | ||
public void testManifestCommitLock_matchBuildManifest() { | ||
addParam('MANIFEST_LOCK_ACTION', 'MATCH_BUILD_MANIFEST') | ||
super.testPipeline('jenkins/release-manifest-commit-lock/release-manifest-commit-lock.jenkinsfile', | ||
'tests/jenkins/jenkinsjob-regression-files/release-manifest-commit-lock/testManifestCommitLock_matchBuildManifest') | ||
super.testPipeline('jenkins/release-workflows/release-manifest-commit-lock.jenkinsfile', | ||
'tests/jenkins/jenkinsjob-regression-files/release-workflows/testManifestCommitLock_matchBuildManifest') | ||
def callStack = helper.getCallStack() | ||
assertCallStack().contains('stage(Parameters Check, groovy.lang.Closure)') | ||
assertCallStack().contains('stage(MATCH_BUILD_MANIFEST, groovy.lang.Closure)') | ||
|
@@ -59,8 +59,8 @@ class TestReleaseManifestCommitLock extends BuildPipelineTest { | |
@Test | ||
public void testManifestCommitLock_updateToRecentCommits() { | ||
addParam('MANIFEST_LOCK_ACTION', 'UPDATE_TO_RECENT_COMMITS') | ||
super.testPipeline('jenkins/release-manifest-commit-lock/release-manifest-commit-lock.jenkinsfile', | ||
'tests/jenkins/jenkinsjob-regression-files/release-manifest-commit-lock/testManifestCommitLock_updateToRecentCommits') | ||
super.testPipeline('jenkins/release-workflows/release-manifest-commit-lock.jenkinsfile', | ||
'tests/jenkins/jenkinsjob-regression-files/release-workflows/testManifestCommitLock_updateToRecentCommits') | ||
def callStack = helper.getCallStack() | ||
assertCallStack().contains('stage(Parameters Check, groovy.lang.Closure)') | ||
assertCallStack().contains('stage(UPDATE_TO_RECENT_COMMITS, groovy.lang.Closure)') | ||
|
@@ -69,8 +69,8 @@ class TestReleaseManifestCommitLock extends BuildPipelineTest { | |
@Test | ||
public void testManifestCommitLock_updateToTags() { | ||
addParam('MANIFEST_LOCK_ACTION', 'UPDATE_TO_TAGS') | ||
super.testPipeline('jenkins/release-manifest-commit-lock/release-manifest-commit-lock.jenkinsfile', | ||
'tests/jenkins/jenkinsjob-regression-files/release-manifest-commit-lock/testManifestCommitLock_updateToTags') | ||
super.testPipeline('jenkins/release-workflows/release-manifest-commit-lock.jenkinsfile', | ||
'tests/jenkins/jenkinsjob-regression-files/release-workflows/testManifestCommitLock_updateToTags') | ||
def callStack = helper.getCallStack() | ||
assertCallStack().contains('stage(Parameters Check, groovy.lang.Closure)') | ||
assertCallStack().contains('stage(UPDATE_TO_TAGS, groovy.lang.Closure)') | ||
|
@@ -81,8 +81,8 @@ class TestReleaseManifestCommitLock extends BuildPipelineTest { | |
|
||
@Test | ||
public void testManifestCommitLock_createPullRequest() { | ||
super.testPipeline('jenkins/release-manifest-commit-lock/release-manifest-commit-lock.jenkinsfile', | ||
'tests/jenkins/jenkinsjob-regression-files/release-manifest-commit-lock/testManifestCommitLock_createPullRequest') | ||
super.testPipeline('jenkins/release-workflows/release-manifest-commit-lock.jenkinsfile', | ||
'tests/jenkins/jenkinsjob-regression-files/release-workflows/testManifestCommitLock_createPullRequest') | ||
assertThat(getShellCommands('git'), hasItem("\n git remote set-url origin \"https://opensearch-ci:[email protected]/opensearch-project/opensearch-build\"\n git config user.email \"[email protected]\"\n git config user.name \"opensearch-ci\"\n git checkout -b manifest-lock\n ")) | ||
assertThat(getShellCommands('git'), hasItem("\n git status --porcelain | grep '^ M' | cut -d \" \" -f3 | xargs git add\n git commit -sm \"Manifest Commit Lock for Release 2.0.0\"\n git push origin manifest-lock --force\n gh pr create --title '[2.0.0] Manifest Commit Lock with action MATCH_BUILD_MANIFEST' --body 'Manifest Commit Lock for Release 2.0.0 ' -H manifest-lock -B main\n ")) | ||
} | ||
|
@@ -93,8 +93,8 @@ class TestReleaseManifestCommitLock extends BuildPipelineTest { | |
helper.addShMock("""git ls-remote https://github.com/opensearch-project/OpenSearch.git 2.0""") { script -> | ||
return [stdout: "", exitValue: 0] | ||
} | ||
super.testPipeline('jenkins/release-manifest-commit-lock/release-manifest-commit-lock.jenkinsfile', | ||
'tests/jenkins/jenkinsjob-regression-files/release-manifest-commit-lock/testUpdateToRecentCommit') | ||
super.testPipeline('jenkins/release-workflows/release-manifest-commit-lock.jenkinsfile', | ||
'tests/jenkins/jenkinsjob-regression-files/release-workflows/testUpdateToRecentCommit') | ||
assertCallStack().contains('release-manifest-commit-lock.readYaml({file=manifests/2.0.0/opensearch-dashboards-2.0.0.yml})') | ||
assertCallStack().contains('release-manifest-commit-lock.readYaml({file=manifests/2.0.0/opensearch-dashboards-2.0.0.yml})') | ||
assertCallStack().contains('release-manifest-commit-lock.sh({script=git ls-remote https://github.com/opensearch-project/OpenSearch.git 2.0 | cut -f 1, returnStdout=true})') | ||
|
@@ -110,8 +110,8 @@ class TestReleaseManifestCommitLock extends BuildPipelineTest { | |
helper.registerAllowedMethod('readYaml', [Map.class], { args -> | ||
return new Yaml().load((buildManifest as File).text) | ||
}) | ||
super.testPipeline('jenkins/release-manifest-commit-lock/release-manifest-commit-lock.jenkinsfile', | ||
'tests/jenkins/jenkinsjob-regression-files/release-manifest-commit-lock/testMatchBuildManifest') | ||
super.testPipeline('jenkins/release-workflows/release-manifest-commit-lock.jenkinsfile', | ||
'tests/jenkins/jenkinsjob-regression-files/release-workflows/testMatchBuildManifest') | ||
assertThat(getShellCommands('curl'), hasItem("{script=curl -sSL https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.0.0/3813/linux/x64/tar/dist/opensearch/manifest.yml, returnStdout=true}")) | ||
assertCallStack().contains("release-manifest-commit-lock.writeYaml({file=manifests/2.0.0/opensearch-dashboards-2.0.0.yml, data={schema-version=1.1, build={name=OpenSearch, version=2.0.0, platform=linux, architecture=x64, distribution=tar, location=https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.0.0/3813/linux/x64/tar/dist/opensearch/opensearch-2.0.0-linux-x64.tar.gz, id=3813}, components=[{name=OpenSearch, repository=https://github.com/opensearch-project/OpenSearch.git, ref=bae3b4e4178c20ac24fece8e82099abe3b2630d0, commit_id=bae3b4e4178c20ac24fece8e82099abe3b2630d0, location=https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.0.0/3813/linux/x64/tar/builds/opensearch/dist/opensearch-min-2.0.0-linux-x64.tar.gz}, {name=common-utils, repository=https://github.com/opensearch-project/common-utils.git, ref=2.0, commit_id=e59ea173af31fd468ce443fc4022649cad306e36}, {name=job-scheduler, repository=https://github.com/opensearch-project/job-scheduler.git, ref=2.0, commit_id=b5b21097894ecec7a78da622ee96763908b32898, location=https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.0.0/3813/linux/x64/tar/builds/opensearch/plugins/opensearch-job-scheduler-2.0.0.0.zip}, {name=ml-commons, repository=https://github.com/opensearch-project/ml-commons.git, ref=2.0, commit_id=5c6e4bd4d996cf2d0a9726e1537ef98822d1795f, location=https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.0.0/3813/linux/x64/tar/builds/opensearch/plugins/opensearch-ml-2.0.0.0.zip}]}, overwrite=true})") | ||
assertCallStack().contains("release-manifest-commit-lock.writeYaml(") | ||
|
@@ -125,8 +125,8 @@ class TestReleaseManifestCommitLock extends BuildPipelineTest { | |
helper.registerAllowedMethod('readYaml', [Map.class], { args -> | ||
return new Yaml().load((buildManifest as File).text) | ||
}) | ||
super.testPipeline('jenkins/release-manifest-commit-lock/release-manifest-commit-lock.jenkinsfile', | ||
'tests/jenkins/jenkinsjob-regression-files/release-manifest-commit-lock/testUpdateToRecentCommit_excludeFTRepo') | ||
super.testPipeline('jenkins/release-workflows/release-manifest-commit-lock.jenkinsfile', | ||
'tests/jenkins/jenkinsjob-regression-files/release-workflows/testUpdateToRecentCommit_excludeFTRepo') | ||
// The test asserts that FT repo uses the release branch | ||
assertCallStack().contains("release-manifest-commit-lock.writeYaml({file=manifests/2.0.0/opensearch-dashboards-2.0.0.yml, data={ci={image={name=opensearchstaging/ci-runner:centos7-x64-arm64-jdkmulti-node10.24.1-cypress6.9.1-20211028}}, build={name=OpenSearch Dashboards, version=3.0.0}, components=[{name=OpenSearch-Dashboards, ref=tags/3.0.0, repository=https://github.com/opensearch-project/OpenSearch-Dashboards.git}, {name=functionalTestDashboards, repository=https://github.com/opensearch-project/opensearch-dashboards-functional-test.git, ref=3.0}, {name=observabilityDashboards, ref=tags/3.0.0, repository=https://github.com/opensearch-project/dashboards-observability.git}, {name=indexManagementDashboards, ref=tags/3.0.0, repository=https://github.com/opensearch-project/index-management-dashboards-plugin}, {name=ganttChartDashboards, ref=tags/3.0.0, repository=https://github.com/opensearch-project/dashboards-visualizations.git}, {name=reportsDashboards, ref=tags/3.0.0, repository=https://github.com/opensearch-project/dashboards-reports.git}, {name=queryWorkbenchDashboards, ref=tags/3.0.0, repository=https://github.com/opensearch-project/sql.git}, {name=anomalyDetectionDashboards, ref=tags/3.0.0, repository=https://github.com/opensearch-project/anomaly-detection-dashboards-plugin}], schema-version=1.0}, overwrite=true})") | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 0 additions & 46 deletions
46
...egression-files/release-manifest-commit-lock/release-manifest-commit-lock.jenkinsfile.txt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.