Steps:
- Create Pipeline job for any project on github.
node { def mvnHome stage('Preparation') { git 'https://github.com/user-github/project.git' mvnHome = tool 'M3' } stage('Build') { if (isUnix()) { sh "'${mvnHome}/bin/mvn' -Dmaven.test.failure.ignore clean package" } else { bat(/"${mvnHome}\bin\mvn" -Dmaven.test.failure.ignore clean package/) } stage('Results') { junit '**/target/surefire-reports/TEST-*.xml' archive 'target/*.jar' } }
- Open this project on github.
- Edit any files via the web interface. Commit.
- Run this job.
- Check Recent Changes:
Expected Result: Recent changes have been made the correct user from github.
Actual Result: Recent changes have been made the "noreply" user.
Correct git log:commit 497fb99ae5c481f72ea34fa2e190afa908660798 Author: ksenia-nenasheva <ks.nenasheva@gmail.com> Date: Tue Oct 4 14:46:24 2016 +0200 Update Jenkinsfile commit bbf860b9a6c7a28208b717d42e6f8665b21063a8 Author: ksenia-nenasheva <ks.nenasheva@gmail.com> Date: Tue Oct 4 14:18:41 2016 +0200 Update Jenkinsfile commit 7312064526032f050b04335b4676b27b48a698f0 Author: ksenia-nenasheva <ks.nenasheva@gmail.com> Date: Tue Oct 4 13:56:31 2016 +0200 Update Jenkinsfile
Please see the attached screenshots.
[JENKINS-38698] SCM Changelog: Commits, made via github, displayed with "noreply" user
Description |
Original:
+Steps:+ # Create Pipeline job for any project on github. # Open this project on github. # Edit any files via the web interface. Commit. # Run this job. # Check Recent Changes: *Expected Result:* Recent changes have been made the user from github. *Actual Result:* Recent changes have been made the "noreply" user. # Correct git log: {noformat} commit 497fb99ae5c481f72ea34fa2e190afa908660798 Author: ksenia-nenasheva <ks.nenasheva@gmail.com> Date: Tue Oct 4 14:46:24 2016 +0200 Update Jenkinsfile commit bbf860b9a6c7a28208b717d42e6f8665b21063a8 Author: ksenia-nenasheva <ks.nenasheva@gmail.com> Date: Tue Oct 4 14:18:41 2016 +0200 Update Jenkinsfile commit 7312064526032f050b04335b4676b27b48a698f0 Author: ksenia-nenasheva <ks.nenasheva@gmail.com> Date: Tue Oct 4 13:56:31 2016 +0200 Update Jenkinsfile {noformat} Please see the attached screenshots. |
New:
+Steps:+ # Create Pipeline job for any project on github. {code} node { def mvnHome stage('Preparation') { git 'https://github.com/user-github/project.git' mvnHome = tool 'M3' } stage('Build') { if (isUnix()) { sh "'${mvnHome}/bin/mvn' -Dmaven.test.failure.ignore clean package" } else { bat(/"${mvnHome}\bin\mvn" -Dmaven.test.failure.ignore clean package/) } stage('Results') { junit '**/target/surefire-reports/TEST-*.xml' archive 'target/*.jar' } } {code} # Open this project on github. # Edit any files via the web interface. Commit. # Run this job. # Check Recent Changes: *Expected Result:* Recent changes have been made the correct user from github. *Actual Result:* Recent changes have been made the "noreply" user. Correct git log: {noformat} commit 497fb99ae5c481f72ea34fa2e190afa908660798 Author: ksenia-nenasheva <ks.nenasheva@gmail.com> Date: Tue Oct 4 14:46:24 2016 +0200 Update Jenkinsfile commit bbf860b9a6c7a28208b717d42e6f8665b21063a8 Author: ksenia-nenasheva <ks.nenasheva@gmail.com> Date: Tue Oct 4 14:18:41 2016 +0200 Update Jenkinsfile commit 7312064526032f050b04335b4676b27b48a698f0 Author: ksenia-nenasheva <ks.nenasheva@gmail.com> Date: Tue Oct 4 13:56:31 2016 +0200 Update Jenkinsfile {noformat} Please see the attached screenshots. |
Summary | Original: Commits, made via github, displayed with "noreply" user | New: SCM Changelog: Commits, made via github, displayed with "noreply" user |
Labels | Original: changes github pipeline | New: changes git github pipeline |
Component/s | New: git-plugin [ 15543 ] |
Assignee | New: Mark Waite [ markewaite ] |
Assignee | Original: Mark Waite [ markewaite ] |
Resolution | New: Not A Defect [ 7 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Attachment | New: Pipeline-Multi-Branch.png [ 36802 ] | |
Attachment | New: GitHub-Org-Folders.png [ 36803 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |