Skip to content

Commit

Permalink
Added jenkinsfile to run gradle check in OpenSearch (#2166)
Browse files Browse the repository at this point in the history
* Added jenkinsfile for gradle check

Signed-off-by: Owais Kazi <[email protected]>

* Added jenkinsfile to run gradle check

Signed-off-by: Owais Kazi <[email protected]>

* PR comment

Signed-off-by: Owais Kazi <[email protected]>
(cherry picked from commit f1d35d0)
  • Loading branch information
owaiskazi19 authored and github-actions[bot] committed Mar 28, 2022
1 parent 0fd6084 commit 947565b
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions jenkins/jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
pipeline {
agent {
docker {
label 'AL2-X64'
/* See
https://github.com/opensearch-project/opensearch-build/blob/main/docker/ci/dockerfiles/build.ubuntu18.opensearch.x64.dockerfile
for docker image
*/
image 'opensearchstaging/ci-runner:ci-runner-ubuntu1804-build-v1'
alwaysPull true
}
}

environment {
JAVA11_HOME="/opt/java/openjdk-11"
JAVA14_HOME="/opt/java/openjdk-14"
JAVA17_HOME="/opt/java/openjdk-17"
JAVA8_HOME="/opt/java/openjdk-8"
JAVA_HOME="/opt/java/openjdk-14"
}

stages {
stage('gradle-check') {
steps {
script {
sh 'echo gradle check'
sh './gradlew check --no-daemon --no-scan'
}
}
}
}
}

0 comments on commit 947565b

Please sign in to comment.