45 lines
1.2 KiB
Plaintext
45 lines
1.2 KiB
Plaintext
|
pipeline {
|
||
|
|
||
|
|
||
|
agent {
|
||
|
|
||
|
dockerfile {
|
||
|
filename 'Dockerfile'
|
||
|
dir '.docker'
|
||
|
label 'linuxdocker'
|
||
|
//additionalBuildArgs '--build-arg version=1.0.2'
|
||
|
args '--gpus all'
|
||
|
}
|
||
|
}
|
||
|
|
||
|
stages {
|
||
|
stage('prep-build-environment') {
|
||
|
steps {
|
||
|
//git poll: false, url: 'http://bru3-pc.fritz.box:3000/Brutex/ci-deeplearning4j.git'
|
||
|
sh 'nvidia-smi'
|
||
|
sh 'nvcc --version'
|
||
|
sh 'gcc --version'
|
||
|
sh 'cmake --version'
|
||
|
checkout scm
|
||
|
}
|
||
|
}
|
||
|
stage('build') {
|
||
|
environment {
|
||
|
MAVEN = credentials('Internal Archiva')
|
||
|
OSSRH = credentials('OSSRH')
|
||
|
|
||
|
}
|
||
|
steps {
|
||
|
|
||
|
sh 'chmod u+x ./gradlew && ls -la'
|
||
|
sh './gradlew --version'
|
||
|
withGradle {
|
||
|
sh './gradlew build --stacktrace --no-watch-fs -x test -PCAVIS_CHIP=cuda -Pmavenuser=$MAVEN_USR -Pmavenpass=$MAVEN_PSW -PossrhUsername=$OSSRH_USR -PossrhPassword=$OSSRH_PSW'
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|