Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-71877

SCM Skip not skipping when changelog is empty

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • scmskip-plugin
    • None
    • Jenkins 2.406 with SCM Skip plugin 1.0.3 on Windows Server 2022 Standard GitLab Enterprise Edition 13.0.6-ee

      Our branch open process pushes an empty commit to mark the beginning of the development process (we call them "versions") with a commit title like:

      [ARCAD-Builder] ARCAD Build Commit [ci-skip]

      There are no changes in the commit (intentionally) the commit id is just used as a marker to synchronize with our external build system.

      The SCM Skip build is ignoring the commit message (the job runs) and we see this message in the Console Output:
      SCM Skip: Changelog is empty!
       

      That makes the SCM Skip plugin unusable for our purposes - interestingly enough the GitLab plugin also has a  [ci-skip] option - that option does work correctly for the exact same commit messages (without changes to the default regex) so it appears that the same code could be used/copied in this plugin to support "generic" skip regardless of git repo type.

          [JENKINS-71877] SCM Skip not skipping when changelog is empty

          Andrew added a comment - - edited

          Here is a sample Request Detail from the Gitlab webhook (that is not being skipped and "should" be skipped) Request Details.txt

          Request
          {
            "object_kind": "push",
            "event_name": "push",
            "before": "570ff7a931488903b2e0fd40711b48a86bf9feed",
            "after": "e149633f6607ef6670add74891c26da3e4e3c3a1",
            "ref": "refs/heads/feature/feature9",
            "checkout_sha": "e149633f6607ef6670add74891c26da3e4e3c3a1",
            "message": null,
            "user_id": 57,
            "user_name": "Andrew CLARK",
            "user_username": "aclark",
            "user_email": "",
            "user_avatar": "https://gitlab02.quarcad.net/uploads/-/system/user/avatar/57/avatar.png",
            "project_id": 347,
            "project":

          Unknown macro: {     "id"}

          ,
            "commits": [
              {
                "id": "e149633f6607ef6670add74891c26da3e4e3c3a1",
                "message": "[ARCAD-Builder] [ci-skip]\r\n\r\nOpened version LABCO/DEV/FT.00.09 on HOM02",
                "title": "[ARCAD-Builder] [ci-skip]",
                "timestamp": "2023-08-22T19:32:14-05:00",
                "url": "https://gitlab02.quarcad.net/aclark/labco/-/commit/e149633f6607ef6670add74891c26da3e4e3c3a1",
                "author":

          Unknown macro: {         "name"}

          ,
                "added": [

                ],
                "modified": [

                ],
                "removed": [

                ]
              }
            ],
            "total_commits_count": 1,
            "push_options":

          Unknown macro: {   }

          ,
            "repository":

          Unknown macro: {     "name"}

          }

          Headers
          Content-Type: application/json
          User-Agent: GitLab/15.11.1
          X-Gitlab-Event: Push Hook
          X-Gitlab-Instance: https://gitlab02.quarcad.net
          X-Gitlab-Event-UUID: 2b924fed-182b-4cfe-b789-499f981dac16
          X-Gitlab-Token: [REDACTED]

          Andrew added a comment - - edited Here is a sample Request Detail from the Gitlab webhook (that is not being skipped and "should" be skipped) Request Details.txt Request {   "object_kind": "push",   "event_name": "push",   "before": "570ff7a931488903b2e0fd40711b48a86bf9feed",   "after": "e149633f6607ef6670add74891c26da3e4e3c3a1",   "ref": "refs/heads/feature/feature9",   "checkout_sha": "e149633f6607ef6670add74891c26da3e4e3c3a1",   "message": null,   "user_id": 57,   "user_name": "Andrew CLARK",   "user_username": "aclark",   "user_email": "",   "user_avatar": "https://gitlab02.quarcad.net/uploads/-/system/user/avatar/57/avatar.png",   "project_id": 347,   "project": Unknown macro: {     "id"} ,   "commits": [     {       "id": "e149633f6607ef6670add74891c26da3e4e3c3a1",       "message": " [ARCAD-Builder] [ci-skip] \r\n\r\nOpened version LABCO/DEV/FT.00.09 on HOM02",       "title": " [ARCAD-Builder] [ci-skip] ",       "timestamp": "2023-08-22T19:32:14-05:00",       "url": "https://gitlab02.quarcad.net/aclark/labco/-/commit/e149633f6607ef6670add74891c26da3e4e3c3a1",       "author": Unknown macro: {         "name"} ,       "added": [       ],       "modified": [       ],       "removed": [       ]     }   ],   "total_commits_count": 1,   "push_options": Unknown macro: {   } ,   "repository": Unknown macro: {     "name"} } Headers Content-Type: application/json User-Agent: GitLab/15.11.1 X-Gitlab-Event: Push Hook X-Gitlab-Instance: https://gitlab02.quarcad.net X-Gitlab-Event-UUID: 2b924fed-182b-4cfe-b789-499f981dac16 X-Gitlab-Token: [REDACTED]

            plavc Gregor PlavĨak
            aclark_arcad Andrew
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: