Add jenkinsfile for pipeline build and dockerfile for build
Signed-off-by: brian <brian@brutex.de>master
parent
b6575b22c8
commit
62060d8131
|
@ -47,7 +47,37 @@ pipeline {
|
||||||
|
|
||||||
steps {
|
steps {
|
||||||
withGradle {
|
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 \
|
-Pmavenuser=$MAVEN_USR -Pmavenpass=$MAVEN_PSW \
|
||||||
-PossrhUsername=$OSSRH_USR -PossrhPassword=$OSSRH_PSW'
|
-PossrhUsername=$OSSRH_USR -PossrhPassword=$OSSRH_PSW'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue