Skip to content

Commit

Permalink
Use ${sha1} instead of ${ghprbActualCommit} for Pre-commit Jobs
Browse files Browse the repository at this point in the history
Descriptions of the changes in this PR:

### Motivation

According to  the documentation of the GitHub Pull Request plugin:
- ${sha1} means a commit which is the result of merging the PR branch with the target branch
- ${ghprbActualCommit} is directly the PR branch

So currently we are not testing the PR branch against the target branch, but only the branch "as it is"

see:
https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=4&ved=2ahUKEwje0PjpnuDeAhUF2SwKHXN4BgYQFjADegQIAxAB&url=https%3A%2F%2Fwiki.jenkins.io%2Fdisplay%2FJENKINS%2FGitHub%2Bpull%2Brequest%2Bbuilder%2Bplugin&usg=AOvVaw2XvPL5ynRYnqVEWqpe9cs1

### Changes

Use ${sha1} instead of ${ghprbActualCommit} for Pre-commit Jobs




Reviewers: Ivan Kelly <[email protected]>, Sijie Guo

This closes apache#1818 from eolivelli/fix/jenskin-use-sha1
  • Loading branch information
eolivelli authored Nov 28, 2018
1 parent 5602c51 commit 6d4e5c8
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ freeStyleJob('bookkeeper_precommit_bookie_tests') {
'JDK 1.8 (latest)',
200,
'ubuntu',
'${ghprbActualCommit}')
'${sha1}')

// Sets that this is a PreCommit job.
common_job_properties.setPreCommit(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ freeStyleJob('bookkeeper_precommit_client_tests') {
'JDK 1.8 (latest)',
200,
'ubuntu',
'${ghprbActualCommit}')
'${sha1}')

// Sets that this is a PreCommit job.
common_job_properties.setPreCommit(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ freeStyleJob('bookkeeper_precommit_integrationtests') {
'JDK 1.8 (latest)',
200,
'ubuntu',
'${ghprbActualCommit}')
'${sha1}')

throttleConcurrentBuilds {
// limit builds to 1 per node to avoid conflicts on building docker images
Expand Down
2 changes: 1 addition & 1 deletion .test-infra/jenkins/job_bookkeeper_precommit_java8.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ mavenJob('bookkeeper_precommit_pullrequest_java8') {
'JDK 1.8 (latest)',
200,
'ubuntu',
'${ghprbActualCommit}')
'${sha1}')

// Sets that this is a PreCommit job.
common_job_properties.setPreCommit(
Expand Down
2 changes: 1 addition & 1 deletion .test-infra/jenkins/job_bookkeeper_precommit_java9.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ mavenJob('bookkeeper_precommit_pullrequest_java9') {
'JDK 1.9 (latest)',
200,
'ubuntu',
'${ghprbActualCommit}')
'${sha1}')

// Sets that this is a PreCommit job.
common_job_properties.setPreCommit(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ freeStyleJob('bookkeeper_precommit_remaining_tests') {
'JDK 1.8 (latest)',
200,
'ubuntu',
'${ghprbActualCommit}')
'${sha1}')

// Sets that this is a PreCommit job.
common_job_properties.setPreCommit(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ freeStyleJob('bookkeeper_precommit_replication_tests') {
'JDK 1.8 (latest)',
200,
'ubuntu',
'${ghprbActualCommit}')
'${sha1}')

// Sets that this is a PreCommit job.
common_job_properties.setPreCommit(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ freeStyleJob('bookkeeper_precommit_tls_tests') {
'JDK 1.8 (latest)',
200,
'ubuntu',
'${ghprbActualCommit}')
'${sha1}')

// Sets that this is a PreCommit job.
common_job_properties.setPreCommit(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ mavenJob('bookkeeper_precommit_pullrequest_validation') {
'JDK 1.8 (latest)',
200,
'ubuntu',
'${ghprbActualCommit}')
'${sha1}')

// Sets that this is a PreCommit job.
common_job_properties.setPreCommit(
Expand Down

0 comments on commit 6d4e5c8

Please sign in to comment.