Skip to content

Commit 67c4a36

Browse files
committed
Don't run CI jobs on pushes to branch
1 parent ab56a44 commit 67c4a36

File tree

6 files changed

+18
-66
lines changed

6 files changed

+18
-66
lines changed

.github/workflows/atlas.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
name: Hibernate ORM build-Atlas
88

99
on:
10-
push:
11-
branches:
12-
- '6.2'
1310
pull_request:
1411
branches:
1512
- '6.2'

.github/workflows/contributor-build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
name: Hibernate ORM build
88

99
on:
10-
push:
11-
branches:
12-
- '6.2'
1310
pull_request:
1411
branches:
1512
- '6.2'

Jenkinsfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
6363
currentBuild.result = 'NOT_BUILT'
6464
return
6565
}
66+
// This is a limited maintenance branch, so don't run this on pushes to the branch, only on PRs
67+
if ( !env.CHANGE_ID ) {
68+
print "INFO: Build skipped because this job should only run for pull request, not for branch pushes"
69+
currentBuild.result = 'NOT_BUILT'
70+
return
71+
}
6672

6773
stage('Build') {
6874
Map<String, Closure> executions = [:]

ci/jpa-3.1-tck.Jenkinsfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
66
currentBuild.result = 'NOT_BUILT'
77
return
88
}
9+
// This is a limited maintenance branch, so don't run this on pushes to the branch, only on PRs
10+
if ( !env.CHANGE_ID ) {
11+
print "INFO: Build skipped because this job should only run for pull request, not for branch pushes"
12+
currentBuild.result = 'NOT_BUILT'
13+
return
14+
}
915

1016
pipeline {
1117
agent {

ci/quarkus.Jenkinsfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
66
currentBuild.result = 'NOT_BUILT'
77
return
88
}
9+
// This is a limited maintenance branch, so don't run this on pushes to the branch, only on PRs
10+
if ( !env.CHANGE_ID ) {
11+
print "INFO: Build skipped because this job should only run for pull request, not for branch pushes"
12+
currentBuild.result = 'NOT_BUILT'
13+
return
14+
}
915

1016
pipeline {
1117
agent {

ci/snapshot-publish.Jenkinsfile

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)