Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
Move clang-formatted code from container
Browse files Browse the repository at this point in the history
  • Loading branch information
amues committed Mar 24, 2023
1 parent 0cdd46d commit 195c565
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,16 @@ 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',
gitToolName: 'Default'
)
]) {
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
Expand Down

0 comments on commit 195c565

Please sign in to comment.