Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 03cbbff

Browse files
authored
Merge pull request #154 from SameeraPriyathamTadikonda/dev
DEVO-630: Setting up a pipeline to run ml-javaclient-util tests
2 parents 412307a + 6c216a4 commit 03cbbff

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Jenkinsfile

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
@Library('shared-libraries') _
2+
pipeline{
3+
agent {label 'devExpLinuxPool'}
4+
options {
5+
checkoutToSubdirectory 'ml-javaclient-util'
6+
buildDiscarder logRotator(artifactDaysToKeepStr: '7', artifactNumToKeepStr: '', daysToKeepStr: '30', numToKeepStr: '')
7+
}
8+
environment{
9+
JAVA_HOME_DIR="/home/builder/java/jdk-11.0.2"
10+
GRADLE_DIR =".gradle"
11+
DMC_USER = credentials('MLBUILD_USER')
12+
DMC_PASSWORD = credentials('MLBUILD_PASSWORD')
13+
}
14+
stages{
15+
stage('tests'){
16+
steps{
17+
copyRPM 'Release','10.0-9.4'
18+
setUpML '$WORKSPACE/xdmp/src/Mark*.rpm'
19+
sh label:'test', script: '''#!/bin/bash
20+
export JAVA_HOME=$JAVA_HOME_DIR
21+
export GRADLE_USER_HOME=$WORKSPACE/$GRADLE_DIR
22+
export PATH=$GRADLE_USER_HOME:$JAVA_HOME/bin:$PATH
23+
cd ml-javaclient-util
24+
./gradlew test || true
25+
'''
26+
junit '**/build/**/*.xml'
27+
}
28+
}
29+
}
30+
}

0 commit comments

Comments
 (0)