Added jenkinsfile to run gradle check in OpenSearch (#2166)

* Added jenkinsfile for gradle check

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

* Added jenkinsfile to run gradle check

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>

* PR comment

Signed-off-by: Owais Kazi <owaiskazi19@gmail.com>
This commit is contained in:
Owais Kazi 2022-03-25 16:45:06 -07:00 committed by GitHub
parent d4ce87bddc
commit f1d35d028f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 32 additions and 0 deletions

32
jenkins/jenkinsfile Normal file
View File

@ -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'
}
}
}
}
}