From 346dfd731db309727ed7a66137057079b3d30091 Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Fri, 19 Jul 2024 01:27:01 +0800 Subject: [PATCH] fix build --- Jenkinsfile | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 267d274..44d41ca 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,10 @@ pipeline { - agent any + agent { + docker { + image 'tqcq/cross' + } + } + options { skipDefaultCheckout(true) } @@ -13,24 +18,13 @@ pipeline { } stage('Configure') { - agent { - docker { - image 'tqcq/cross' - } - } - steps { sh 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Debug -DTILE_BUILD_TESTS=ON -DTILE_BUILD_BENCHMARKS=ON' } } stage('Build'){ - agent { - docker { - image 'tqcq/cross' - } - } steps { - sh 'cmake --build --target all -- -j`nproc --ignore=4`' + sh 'cmake --build build --target all -- -j`nproc --ignore=4`' } } stage('Deploy') {