Skip to content

Commit

Permalink
Remove hardcode git clone for the jenkins
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon committed Apr 26, 2022
1 parent b439dcb commit d343ae7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion jenkins/vulnerability-scan/whitesource-scan.jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ pipeline {
}

void scan() {
git url: 'https://github.com/opensearch-project/opensearch-build.git', branch: 'main'
sh """
curl -SLO https://services.gradle.org/distributions/gradle-6.6.1-bin.zip
unzip gradle-6.6.1-bin.zip
Expand Down
2 changes: 0 additions & 2 deletions vars/buildDockerImage.groovy
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
void call(Map args = [:]) {
git url: 'https://github.com/opensearch-project/opensearch-build.git', branch: 'main'

def lib = library(identifier: 'jenkins@20211123', retriever: legacySCM(scm))
def inputManifest = lib.jenkins.InputManifest.new(readYaml(file: args.inputManifest))
def build_qualifier = inputManifest.build.qualifier
Expand Down
3 changes: 1 addition & 2 deletions vars/detectDockerAgent.groovy
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Map call(Map args = [:]) {
git url: 'https://github.com/opensearch-project/opensearch-build.git', branch: 'main'
def lib = library(identifier: "jenkins@20211123", retriever: legacySCM(scm))
String manifest = args.manifest ?: "manifests/${INPUT_MANIFEST}"
def inputManifest = lib.jenkins.InputManifest.new(readYaml(file: manifest))
Expand All @@ -10,4 +9,4 @@ Map call(Map args = [:]) {
image: dockerImage,
args: dockerArgs
]
}
}

0 comments on commit d343ae7

Please sign in to comment.