Add jenkinsfile for pipeline build and dockerfile for build
parent
597abdf063
commit
a31fbb9942
|
@ -0,0 +1,7 @@
|
|||
FROM nvidia/cuda:11.4.0-devel-ubuntu20.04
|
||||
|
||||
RUN apt-get update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y openjdk-11-jdk wget build-essential checkinstall zlib1g-dev libssl-dev
|
||||
RUN wget https://github.com/Kitware/CMake/releases/download/v3.24.2/cmake-3.24.2.tar.gz && \
|
||||
tar -xvf cmake-3.24.2.tar.gz && cd cmake-3.24.2 && \
|
||||
./bootstrap && make && make install
|
34
build.gradle
34
build.gradle
|
@ -110,17 +110,17 @@ allprojects { Project proj ->
|
|||
}
|
||||
repositories {
|
||||
|
||||
maven {
|
||||
name = 'LocalRemote'
|
||||
def releasesRepoUrl = 'https://archiva.brutex.net/repository/internal/'
|
||||
def snapshotsRepoUrl = 'https://archiva.brutex.net/repository/snapshots/'
|
||||
url = proj.version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
|
||||
allowInsecureProtocol = false
|
||||
credentials {
|
||||
username = mavenuser
|
||||
password = mavenpass
|
||||
}
|
||||
maven {
|
||||
name = 'LocalRemote'
|
||||
def releasesRepoUrl = 'https://archiva.brutex.net/repository/internal/'
|
||||
def snapshotsRepoUrl = 'https://archiva.brutex.net/repository/snapshots/'
|
||||
url = proj.version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
|
||||
allowInsecureProtocol = false
|
||||
credentials {
|
||||
username = mavenuser
|
||||
password = mavenpass
|
||||
}
|
||||
}
|
||||
/*
|
||||
maven {
|
||||
name = 'OSSRH'
|
||||
|
@ -134,6 +134,20 @@ allprojects { Project proj ->
|
|||
}
|
||||
|
||||
*/
|
||||
/*
|
||||
maven {
|
||||
name = 'localGitea'
|
||||
def releasesRepoUrl = 'http://bru3-pc.fritz.box:3000/api/packages/brutex/maven'
|
||||
def snapshotsRepoUrl = 'http://bru3-pc.fritz.box:3000/api/packages/brutex/maven'
|
||||
url = proj.version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
|
||||
allowInsecureProtocol = true
|
||||
credentials {
|
||||
username = mavenuser
|
||||
password = mavenpass
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ ext {
|
|||
def javacv = [version:"1.5.6"]
|
||||
def opencv = [version: "4.5.3"]
|
||||
def leptonica = [version: "1.81.1"]
|
||||
def junit = [version: "5.7.1"]
|
||||
def junit = [version: "5.9.1"]
|
||||
|
||||
def flatbuffers = [version: "1.10.0"]
|
||||
|
||||
|
|
|
@ -0,0 +1,44 @@
|
|||
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'
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue