|
1 | 1 | smoke-test.run() |
2 | 2 | smoke-test.modernSCM({$class=GitSCMSource, remote=https://github.com/opensearch-project/opensearch-build-libraries.git}) |
3 | | - smoke-test.library({identifier=jenkins@8.1.1, retriever=null}) |
| 3 | + smoke-test.library({identifier=jenkins@9.1.2, retriever=null}) |
4 | 4 | smoke-test.pipeline(groovy.lang.Closure) |
5 | 5 | smoke-test.credentials(jenkins-artifact-bucket-name) |
6 | 6 | smoke-test.timeout({time=2, unit=HOURS}) |
|
11 | 11 | smoke-test.fileExists(manifests/tests/jenkins/data/opensearch-2.19.0-test.yml) |
12 | 12 | smoke-test.downloadBuildManifest({url=https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.19.0/10691/linux/arm64/rpm/builds/opensearch/manifest.yml, path=tests/jenkins/data/opensearch-2.19.0-build-rpm.yml}) |
13 | 13 | downloadBuildManifest.legacySCM(groovy.lang.Closure) |
14 | | - downloadBuildManifest.library({identifier=jenkins@8.1.1, retriever=null}) |
| 14 | + downloadBuildManifest.library({identifier=jenkins@9.1.2, retriever=null}) |
15 | 15 | downloadBuildManifest.sh(mkdir -p $(dirname "tests/jenkins/data/opensearch-2.19.0-build-rpm.yml")) |
16 | 16 | downloadBuildManifest.sh(touch tests/jenkins/data/opensearch-2.19.0-build-rpm.yml) |
17 | 17 | downloadBuildManifest.sh(curl -sSL --retry 5 https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.19.0/10691/linux/arm64/rpm/builds/opensearch/manifest.yml --output tests/jenkins/data/opensearch-2.19.0-build-rpm.yml) |
|
33 | 33 | smoke-test.checkout(groovy.lang.Closure) |
34 | 34 | smoke-test.downloadBuildManifest({url=https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.19.0/10691/linux/arm64/rpm/builds/opensearch/manifest.yml, path=tests/jenkins/data/opensearch-2.19.0-build-rpm.yml}) |
35 | 35 | downloadBuildManifest.legacySCM(groovy.lang.Closure) |
36 | | - downloadBuildManifest.library({identifier=jenkins@8.1.1, retriever=null}) |
| 36 | + downloadBuildManifest.library({identifier=jenkins@9.1.2, retriever=null}) |
37 | 37 | downloadBuildManifest.sh(mkdir -p $(dirname "tests/jenkins/data/opensearch-2.19.0-build-rpm.yml")) |
38 | 38 | downloadBuildManifest.sh(touch tests/jenkins/data/opensearch-2.19.0-build-rpm.yml) |
39 | 39 | downloadBuildManifest.sh(curl -sSL --retry 5 https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.19.0/10691/linux/arm64/rpm/builds/opensearch/manifest.yml --output tests/jenkins/data/opensearch-2.19.0-build-rpm.yml) |
|
46 | 46 | smoke-test.sh(rm -rf test-results) |
47 | 47 | smoke-test.runSmokeTestScript({jobName=dummy_job, buildManifest=tests/jenkins/data/opensearch-2.19.0-build-rpm.yml, testManifest=manifests/tests/jenkins/data/opensearch-2.19.0-test.yml, buildId=10691, switchUserNonRoot=true}) |
48 | 48 | runSmokeTestScript.legacySCM(groovy.lang.Closure) |
49 | | - runSmokeTestScript.library({identifier=jenkins@8.1.1, retriever=null}) |
| 49 | + runSmokeTestScript.library({identifier=jenkins@9.1.2, retriever=null}) |
50 | 50 | runSmokeTestScript.readYaml({file=tests/jenkins/data/opensearch-2.19.0-build-rpm.yml}) |
51 | 51 | BuildManifest.asBoolean() |
52 | 52 | BuildManifest.getArtifactRootUrl(dummy_job, 10691) |
|
55 | 55 | runSmokeTestScript.echo(Paths: opensearch=https://ci.opensearch.org/ci/dbc/dummy_job/2.19.0/10691/linux/arm64/rpm) |
56 | 56 | runSmokeTestScript.sh(su `id -un 1000` -c " ./test.sh smoke-test manifests/tests/jenkins/data/opensearch-2.19.0-test.yml --test-run-id 234 --paths opensearch=https://ci.opensearch.org/ci/dbc/dummy_job/2.19.0/10691/linux/arm64/rpm ") |
57 | 57 | smoke-test.echo(Completed running smoke tests.) |
| 58 | + smoke-test.uploadTestResults({buildManifestFileName=tests/jenkins/data/opensearch-2.19.0-build-rpm.yml, jobName=dummy_job}) |
| 59 | + uploadTestResults.legacySCM(groovy.lang.Closure) |
| 60 | + uploadTestResults.library({ [email protected], retriever=null}) |
| 61 | + uploadTestResults.readYaml({file=tests/jenkins/data/opensearch-2.19.0-build-rpm.yml}) |
| 62 | + BuildManifest.asBoolean() |
| 63 | + uploadTestResults.echo(Build Id: 10691) |
| 64 | + BuildManifest.getArtifactRoot(dummy_job, 10691) |
| 65 | + uploadTestResults.string({credentialsId=jenkins-artifact-bucket-name, variable=ARTIFACT_BUCKET_NAME}) |
| 66 | + uploadTestResults.string({credentialsId=jenkins-aws-account-public, variable=AWS_ACCOUNT_PUBLIC}) |
| 67 | + uploadTestResults.withCredentials([ARTIFACT_BUCKET_NAME, AWS_ACCOUNT_PUBLIC], groovy.lang.Closure) |
| 68 | + uploadTestResults.echo(Uploading to s3://ARTIFACT_BUCKET_NAME/dummy_job/2.19.0/10691/linux/arm64/rpm) |
| 69 | + uploadTestResults.withAWS({role=opensearch-test, roleAccount=AWS_ACCOUNT_PUBLIC, duration=900, roleSessionName=jenkins-session}, groovy.lang.Closure) |
| 70 | + uploadTestResults.s3Upload({file=test-results, bucket=ARTIFACT_BUCKET_NAME, path=dummy_job/2.19.0/10691/linux/arm64/rpm/test-results}) |
| 71 | + BuildManifest.getArtifactRootUrl(DUMMY_PUBLIC_ARTIFACT_URL, dummy_job) |
| 72 | + Messages.asBoolean() |
| 73 | + Messages.add(DUMMY_STAGE_NAME, https://ci.opensearch.org/ci/dbc/DUMMY_PUBLIC_ARTIFACT_URL/2.19.0/dummy_job/linux/arm64/rpm/test-results/) |
| 74 | + uploadTestResults.writeFile({file=messages/DUMMY_STAGE_NAME.msg, text=https://ci.opensearch.org/ci/dbc/DUMMY_PUBLIC_ARTIFACT_URL/2.19.0/dummy_job/linux/arm64/rpm/test-results/}) |
| 75 | + uploadTestResults.stash({includes=messages/*, name=messages-DUMMY_STAGE_NAME}) |
58 | 76 | smoke-test.postCleanup() |
59 | 77 | postCleanup.cleanWs({disableDeferredWipeout=true, deleteDirs=true}) |
60 | | - smoke-test.postCleanup() |
61 | | - postCleanup.cleanWs({disableDeferredWipeout=true, deleteDirs=true}) |
| 78 | + smoke-test.script(groovy.lang.Closure) |
| 79 | + smoke-test.checkout(groovy.lang.Closure) |
| 80 | + smoke-test.downloadBuildManifest({url=https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.19.0/10691/linux/arm64/rpm/builds/opensearch/manifest.yml, path=tests/jenkins/data/opensearch-2.19.0-build-rpm.yml}) |
| 81 | + downloadBuildManifest.legacySCM(groovy.lang.Closure) |
| 82 | + downloadBuildManifest.library({ [email protected], retriever=null}) |
| 83 | + downloadBuildManifest.sh(mkdir -p $(dirname "tests/jenkins/data/opensearch-2.19.0-build-rpm.yml")) |
| 84 | + downloadBuildManifest.sh(touch tests/jenkins/data/opensearch-2.19.0-build-rpm.yml) |
| 85 | + downloadBuildManifest.sh(curl -sSL --retry 5 https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.19.0/10691/linux/arm64/rpm/builds/opensearch/manifest.yml --output tests/jenkins/data/opensearch-2.19.0-build-rpm.yml) |
| 86 | + downloadBuildManifest.readYaml({file=tests/jenkins/data/opensearch-2.19.0-build-rpm.yml}) |
| 87 | + BuildManifest.asBoolean() |
| 88 | + smoke-test.createUploadTestReportManifest({testManifest=manifests/tests/jenkins/data/opensearch-2.19.0-test.yml, buildManifest=tests/jenkins/data/opensearch-2.19.0-build-rpm.yml, testRunID=234, testType=smoke-test, rcNumber=0}) |
| 89 | + createUploadTestReportManifest.legacySCM(groovy.lang.Closure) |
| 90 | + createUploadTestReportManifest.library({ [email protected], retriever=null}) |
| 91 | + createUploadTestReportManifest.readYaml({file=manifests/tests/jenkins/data/opensearch-2.19.0-test.yml}) |
| 92 | + TestManifest.asBoolean() |
| 93 | + createUploadTestReportManifest.readYaml({file=tests/jenkins/data/opensearch-2.19.0-build-rpm.yml}) |
| 94 | + BuildManifest.asBoolean() |
| 95 | + BuildManifest.getDistribution() |
| 96 | + createUploadTestReportManifest.echo(Start Reporting workflow for test type: rpm) |
| 97 | + BuildManifest.getArtifactRootUrl(distribution-build-opensearch, 10691) |
| 98 | + createUploadTestReportManifest.echo(Artifact root URL: https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.19.0/10691/linux/arm64/rpm) |
| 99 | + createUploadTestReportManifest.echo(Paths: opensearch=https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.19.0/10691/linux/arm64/rpm) |
| 100 | + createUploadTestReportManifest.echo(Base Path DUMMY_PUBLIC_ARTIFACT_URL/dummy_job/2.19.0/10691/linux/arm64/rpm) |
| 101 | + createUploadTestReportManifest.echo(Component: null) |
| 102 | + createUploadTestReportManifest.echo(Run command: ./report.sh manifests/tests/jenkins/data/opensearch-2.19.0-test.yml --artifact-paths opensearch=https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.19.0/10691/linux/arm64/rpm --test-run-id 234 --test-type smoke-test --base-path DUMMY_PUBLIC_ARTIFACT_URL/dummy_job/2.19.0/10691/linux/arm64/rpm --release-candidate 0 ) |
| 103 | + createUploadTestReportManifest.sh(./report.sh manifests/tests/jenkins/data/opensearch-2.19.0-test.yml --artifact-paths opensearch=https://ci.opensearch.org/ci/dbc/distribution-build-opensearch/2.19.0/10691/linux/arm64/rpm --test-run-id 234 --test-type smoke-test --base-path DUMMY_PUBLIC_ARTIFACT_URL/dummy_job/2.19.0/10691/linux/arm64/rpm --release-candidate 0 ) |
| 104 | + createUploadTestReportManifest.echo(Build Id: 10691) |
| 105 | + BuildManifest.getArtifactRoot(dummy_job, 10691) |
| 106 | + createUploadTestReportManifest.string({credentialsId=jenkins-artifact-bucket-name, variable=ARTIFACT_BUCKET_NAME}) |
| 107 | + createUploadTestReportManifest.string({credentialsId=jenkins-aws-account-public, variable=AWS_ACCOUNT_PUBLIC}) |
| 108 | + createUploadTestReportManifest.withCredentials([ARTIFACT_BUCKET_NAME, AWS_ACCOUNT_PUBLIC], groovy.lang.Closure) |
| 109 | + createUploadTestReportManifest.echo(Uploading to s3://dummy_job/2.19.0/10691/linux/arm64/rpm/test-results/234/smoke-test/test-report.yml) |
| 110 | + createUploadTestReportManifest.withAWS({role=opensearch-test, roleAccount=AWS_ACCOUNT_PUBLIC, duration=900, roleSessionName=jenkins-session}, groovy.lang.Closure) |
| 111 | + createUploadTestReportManifest.s3Upload({file=/tmp/workspace/test-report.yml, bucket=ARTIFACT_BUCKET_NAME, path=dummy_job/2.19.0/10691/linux/arm64/rpm/test-results/234/smoke-test/test-report.yml}) |
| 112 | + smoke-test.echo(Download report manifest from https://ci.opensearch.org/ci/dbc/smoke-test/2.19.0/10691/linux/arm64/rpm/test-results/234/smoke-test/test-report.yml) |
| 113 | + smoke-test.archiveArtifacts({artifacts=test-report.yml}) |
| 114 | + smoke-test.postCleanup() |
| 115 | + postCleanup.cleanWs({disableDeferredWipeout=true, deleteDirs=true}) |
62 | 116 | smoke-test.node(Jenkins-Agent-AL2-X64-C54xlarge-Docker-Host, groovy.lang.Closure) |
63 | 117 | smoke-test.script(groovy.lang.Closure) |
64 | 118 | smoke-test.postCleanup() |
|
0 commit comments