From 286cf061ab9a8d127c8e75852e7aa3535c8e4a1c Mon Sep 17 00:00:00 2001 From: brian Date: Wed, 26 Oct 2022 10:25:27 +0200 Subject: [PATCH] Add jenkinsfile for pipeline build and dockerfile for build Signed-off-by: brian --- ...inux-x86_64-docker-all-publish.jenkinsfile | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.jenkins/linux-x86_64-docker-all-publish.jenkinsfile b/.jenkins/linux-x86_64-docker-all-publish.jenkinsfile index f853fdbd2..2e1708e57 100644 --- a/.jenkins/linux-x86_64-docker-all-publish.jenkinsfile +++ b/.jenkins/linux-x86_64-docker-all-publish.jenkinsfile @@ -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 { } } } + } } }