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

Commit bdb5291

Browse files
DEVO-627: Setting up pipeline to run tests on ml-app-deployer
1 parent 2a1f30e commit bdb5291

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-app-deployer'
6+
buildDiscarder logRotator(artifactDaysToKeepStr: '7', artifactNumToKeepStr: '', daysToKeepStr: '30', numToKeepStr: '')
7+
}
8+
environment{
9+
JAVA_HOME_DIR="/home/builder/java/openjdk-1.8.0-262"
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-app-deployer
24+
./gradlew test || true
25+
'''
26+
junit '**/build/**/*.xml'
27+
}
28+
}
29+
}
30+
}

0 commit comments

Comments
 (0)