Add jenkinsfile for pipeline build and dockerfile for build
Signed-off-by: brian <brian@brutex.de>master
parent
6107c7efef
commit
286cf061ab
|
@ -20,20 +20,22 @@
|
|||
*/
|
||||
|
||||
pipeline {
|
||||
agent none
|
||||
agent {
|
||||
dockerfile {
|
||||
filename 'Dockerfile'
|
||||
dir '.docker'
|
||||
label 'linux && docker && cuda'
|
||||
//additionalBuildArgs '--build-arg version=1.0.2'
|
||||
//args '--gpus all' --needed for test only, you can build without GPU
|
||||
}
|
||||
}
|
||||
|
||||
stages {
|
||||
stage("Build all chip") {
|
||||
parallel {
|
||||
agent {
|
||||
dockerfile {
|
||||
filename 'Dockerfile'
|
||||
dir '.docker'
|
||||
label 'linux && docker && cuda'
|
||||
//additionalBuildArgs '--build-arg version=1.0.2'
|
||||
//args '--gpus all' --needed for test only, you can build without GPU
|
||||
}
|
||||
}
|
||||
|
||||
stage('prep-build-environment-linux-cuda') {
|
||||
|
||||
steps {
|
||||
checkout scm
|
||||
//sh 'nvidia-smi'
|
||||
|
@ -59,5 +61,6 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue