From 89d0b51491859afff1a70400a85b38cbdd935519 Mon Sep 17 00:00:00 2001 From: tqcq <99722391+tqcq@users.noreply.github.com> Date: Fri, 19 Jul 2024 01:22:11 +0800 Subject: [PATCH] feat update agent --- Jenkinsfile | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 87b0dd0..267d274 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,10 +1,5 @@ pipeline { - agent { - docker { - image 'tqcq/cross' - } - } - + agent any options { skipDefaultCheckout(true) } @@ -18,11 +13,22 @@ 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`' }