From 62060d81316620eca0206c69bcf82c6e8f297dcc Mon Sep 17 00:00:00 2001 From: brian Date: Tue, 4 Oct 2022 20:06:21 +0200 Subject: [PATCH] Add jenkinsfile for pipeline build and dockerfile for build Signed-off-by: brian --- .../linux-x86_64-docker-cpu-build.jenkinsfile | 32 ++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/.jenkins/linux-x86_64-docker-cpu-build.jenkinsfile b/.jenkins/linux-x86_64-docker-cpu-build.jenkinsfile index 46b32531b..64cfec3cc 100644 --- a/.jenkins/linux-x86_64-docker-cpu-build.jenkinsfile +++ b/.jenkins/linux-x86_64-docker-cpu-build.jenkinsfile @@ -47,7 +47,37 @@ pipeline { steps { withGradle { - sh 'sh ./gradlew publish --stacktrace -x test -PCAVIS_CHIP=cpu \ + sh 'sh ./gradlew build --stacktrace -x test -PCAVIS_CHIP=cpu \ + -Pmavenuser=$MAVEN_USR -Pmavenpass=$MAVEN_PSW \ + -PossrhUsername=$OSSRH_USR -PossrhPassword=$OSSRH_PSW' + } + //stash includes: '/cavis-native/cavis-native-lib/build/lib/*.jar', name: 'cuda-build' + } + } + stage('test-linux-cpu') { + environment { + MAVEN = credentials('Internal Archiva') + OSSRH = credentials('OSSRH') + } + + steps { + withGradle { + sh 'sh ./gradlew test --stacktrace -PCAVIS_CHIP=cpu \ + -Pmavenuser=$MAVEN_USR -Pmavenpass=$MAVEN_PSW \ + -PossrhUsername=$OSSRH_USR -PossrhPassword=$OSSRH_PSW' + } + //stash includes: '/cavis-native/cavis-native-lib/build/lib/*.jar', name: 'cuda-build' + } + } + stage('publish-linux-cpu') { + environment { + MAVEN = credentials('Internal Archiva') + OSSRH = credentials('OSSRH') + } + + steps { + withGradle { + sh 'sh ./gradlew publish --stacktrace -PCAVIS_CHIP=cpu \ -Pmavenuser=$MAVEN_USR -Pmavenpass=$MAVEN_PSW \ -PossrhUsername=$OSSRH_USR -PossrhPassword=$OSSRH_PSW' }