Fix github-maven-merge scm config 27/13227/1
authorJeremy Phelps <jphelps@linuxfoundation.org>
Mon, 29 Oct 2018 19:39:35 +0000 (14:39 -0500)
committerJeremy Phelps <jphelps@linuxfoundation.org>
Mon, 29 Oct 2018 19:39:35 +0000 (14:39 -0500)
Specifying a refspec on this scm config causes no merge job to be
triggered on a push action.

Change-Id: I46066dc6e371f49ed58dcc4f439cb0fae63808db
Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
jjb/lf-maven-jobs.yaml
releasenotes/notes/fix_scm_merge-b5043a151549efd9.yaml [new file with mode: 0644]

index 7e656f8..16e93c5 100644 (file)
     scm:
       - lf-infra-github-scm:
           url: '{git-clone-url}{github-org}/{project}'
-          refspec: '+refs/pull/*:refs/remotes/origin/pr/*'
-          branch: '{branch}'
+          refspec: ''
+          branch: 'refs/heads/{branch}'
           submodule-recursive: '{submodule-recursive}'
           submodule-timeout: '{submodule-timeout}'
           choosing-strategy: default
diff --git a/releasenotes/notes/fix_scm_merge-b5043a151549efd9.yaml b/releasenotes/notes/fix_scm_merge-b5043a151549efd9.yaml
new file mode 100644 (file)
index 0000000..4b80375
--- /dev/null
@@ -0,0 +1,5 @@
+---
+fixes:
+  - |
+    Specify refspec to be blank for SCM config on github-maven-merge job.  Setting the
+    refspec to `+refs/pull/*:refs/remotes/origin/pr/*` causes there to be no merge job triggered.