From 195c56586e35303ec7e7cd32c8346a3935ee4bab Mon Sep 17 00:00:00 2001 From: Afonso Mukai Date: Fri, 24 Mar 2023 11:45:50 +0100 Subject: [PATCH] Move clang-formatted code from container --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 75114a0f1..71f921df0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -111,6 +111,7 @@ builders = pipeline_builder.createBuilders { container -> """ // Push any changes resulting from formatting + container.copyFrom(pipeline_builder.project, 'clang-formatted-code') withCredentials([ gitUsernamePassword( credentialsId: 'cow-bot-username-with-token', @@ -118,8 +119,8 @@ builders = pipeline_builder.createBuilders { container -> ) ]) { withEnv(["PROJECT=${pipeline_builder.project}"]) { - container.sh """ - cd ${pipeline_builder.project} + sh """ + cd clang-formatted-code git push https://github.com/ess-dmsc/${pipeline_builder.project}.git HEAD:$CHANGE_BRANCH """ } // withEnv