Skip to content

Commit

Permalink
License Header checker (#13)
Browse files Browse the repository at this point in the history
* License Header checker

Signed-off-by: Divya Madala <divyaasm@amazon.com>

* License Header checker

Signed-off-by: Divya Madala <divyaasm@amazon.com>

* License Header checker

Signed-off-by: Divya Madala <divyaasm@amazon.com>

* License Header checker

Signed-off-by: Divya Madala <divyaasm@amazon.com>

* License Header checker

Signed-off-by: Divya Madala <divyaasm@amazon.com>

Signed-off-by: Divya Madala <divyaasm@amazon.com>
  • Loading branch information
Divyaasm authored Oct 10, 2022
1 parent 3c8d4dd commit ff36e28
Show file tree
Hide file tree
Showing 181 changed files with 541 additions and 16 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/license-header-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: License Header Checker

on: [push, pull_request]

jobs:
license-header-checker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Add License Header
uses: kt3k/license_checker@v1.0.6
6 changes: 6 additions & 0 deletions .licenserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"**/*.{groovy,sh,Jenkinsfile}":[
" Copyright OpenSearch Contributors",
" SPDX-License-Identifier: Apache-2.0"
]
}
1 change: 1 addition & 0 deletions publish/publish-snapshot.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

###### Information ############################################################################
# Copyright OpenSearch Contributors
# SPDX-License-Identifier: Apache-2.0
#
# The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions publish/stage-maven-release.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

###### Information ############################################################################
# Copyright OpenSearch Contributors
# SPDX-License-Identifier: Apache-2.0
#
# The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions src/jenkins/BuildManifest.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions src/jenkins/BundleManifest.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions src/jenkins/InputManifest.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions src/jenkins/Messages.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions src/jenkins/TestManifest.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/BuildPipelineTest.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
4 changes: 4 additions & 0 deletions tests/jenkins/CommonPipelineTest.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/

package jenkins.tests
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/LibFunctionTester.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestArchiveAssembleUpload.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestAssembleManifest.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestAssembleUpload.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestBuildArchive.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestBuildAssembleUpload.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestBuildDockerImage.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestBuildFailureMessage.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestBuildInfoYaml.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestBuildManifest.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestBuildUploadManifestSHA.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestBuildYumRepo.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestCopyContainer.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestCreateGithubIssue.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestCreateReleaseTag.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestCreateTestResultsMessage.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestDetectDockerImage.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestDetectTestDockerAgent.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestDownloadFromS3.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestGetManifestSHA.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestHello.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestInputManifest.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestMessages.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestParallelMessages.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestPostCleanup.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestPromoteArtifacts.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestPromoteYumRepos.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestPublishNotification.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestRpmDashboardsDistValidation.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestRpmMetaValidation.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestRpmOpenSearchDistValidation.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestRunBwcTestScript.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestRunGradleCheck.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestRunIntegTestScript.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
9 changes: 5 additions & 4 deletions tests/jenkins/TestRunPerfTestScript.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down Expand Up @@ -33,12 +34,12 @@ class TestRunPerfTestScript extends BuildPipelineTest {

@Test
public void testRunPerfTestScript_Pipeline() {
super.testPipeline("tests/jenkins/jobs/PerfTest_JenkinsFile")
super.testPipeline("tests/jenkins/jobs/PerfTest_Jenkinsfile")
}

@Test
void testRunPerfTestScript_verifyArtifactDownloads() {
runScript("tests/jenkins/jobs/PerfTest_JenkinsFile")
runScript("tests/jenkins/jobs/PerfTest_Jenkinsfile")

def curlCommands = getCommandExecutions('sh', 'curl').findAll {
shCommand -> shCommand.contains('curl')
Expand All @@ -61,7 +62,7 @@ class TestRunPerfTestScript extends BuildPipelineTest {

@Test
void testRunPerfTestScript_verifyPackageInstallation() {
runScript("tests/jenkins/jobs/PerfTest_JenkinsFile")
runScript("tests/jenkins/jobs/PerfTest_Jenkinsfile")

def pipenvCommands = getCommandExecutions('sh', 'pipenv').findAll {
shCommand -> shCommand.contains('pipenv')
Expand All @@ -73,7 +74,7 @@ class TestRunPerfTestScript extends BuildPipelineTest {

@Test
void testRunPerfTestScript_verifyScriptExecutions() {
runScript("tests/jenkins/jobs/PerfTest_JenkinsFile")
runScript("tests/jenkins/jobs/PerfTest_Jenkinsfile")

def testScriptCommands = getCommandExecutions('sh', './test.sh').findAll {
shCommand -> shCommand.contains('./test.sh')
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestScanDockerImage.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestSignArtifacts.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestUploadIndexFile.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestUploadMinSnapshotsToS3.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestUploadTestResults.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestUploadToS3.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
1 change: 1 addition & 0 deletions tests/jenkins/TestbuildManifestVar.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
Expand Down
9 changes: 9 additions & 0 deletions tests/jenkins/jobs/ArchiveAssembleUpload_Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/

pipeline {
agent none
stages {
Expand Down
9 changes: 9 additions & 0 deletions tests/jenkins/jobs/AssembleManifest_rpm_Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*/

pipeline {
agent none
stages {
Expand Down
Loading

0 comments on commit ff36e28

Please sign in to comment.