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

Commit

Permalink
Merge pull request #1028 from ess-dmsc/update_git_push_in_build
Browse files Browse the repository at this point in the history
Use gitUsernamePassword in Jenkinsfile
  • Loading branch information
amues authored Mar 30, 2023
2 parents c388c16 + 1d17b3c commit 23fdafb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,17 @@ builders = pipeline_builder.createBuilders { container ->
"""

// Push any changes resulting from formatting
container.copyFrom(pipeline_builder.project, 'clang-formatted-code')
withCredentials([
usernamePassword(
gitUsernamePassword(
credentialsId: 'cow-bot-username-with-token',
usernameVariable: 'USERNAME',
passwordVariable: 'PASSWORD'
gitToolName: 'Default'
)
]) {
withEnv(["PROJECT=${pipeline_builder.project}"]) {
container.sh """
cd ${pipeline_builder.project}
git push https://$USERNAME:$PASSWORD@github.com/ess-dmsc/${pipeline_builder.project}.git HEAD:$CHANGE_BRANCH
sh """
cd clang-formatted-code
git push https://github.com/ess-dmsc/${pipeline_builder.project}.git HEAD:$CHANGE_BRANCH
"""
} // withEnv
} // withCredentials
Expand Down
2 changes: 1 addition & 1 deletion nx-class-documentation/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ <h1>User Manual and Reference Documentation<a class="headerlink" href="#user-man
</div>
<hr class="docutils" />
<p class="rubric">Publishing Information</p>
<p>This manual built Mar 23, 2023.</p>
<p>This manual built Mar 24, 2023.</p>
<div class="admonition seealso">
<p class="admonition-title">See also</p>
<p>This document is available in these formats online:</p>
Expand Down
2 changes: 1 addition & 1 deletion nx-class-documentation/html/searchindex.js

Large diffs are not rendered by default.

0 comments on commit 23fdafb

Please sign in to comment.