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

GitLab Group Scan Incorrectly Reports Missing Jenkinsfile as a Directory

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      Jenkins 2.204.2
      Windows Server 2016
      GitLab Branch Source Plugin 1.4.3
    • Similar Issues:

      Description

      The Scan GitLab Group Log reports the following when the project does not have a Jenkinsfile.

      Checking project Test
      Proposing Test
      
      Unable to detect if it is a mirror or not still fetching MRs anyway...
      
      Checking branches.. 
      
      Checking branch master
            ‘Jenkinsfile’ found but is a directory not a file
      Does not meet criteria
      

      The message, "Jenkinsfile found but is a directory not a file", is inaccurate because there is not a directory named Jenkinsfile.

      I'd like to see this changed so that it more clearly states that a Jenkinsfile was not found.

        Attachments

          Activity

          Hide
          baymac Parichay Barpanda added a comment -

          Are you still facing this issue Charles Bozarth?

          Show
          baymac Parichay Barpanda added a comment - Are you still facing this issue Charles Bozarth ?
          Hide
          xtej Teja Swaroop Bezawada added a comment -

          Same issue Observed with:

          • Jenkins 2.233
          • GitLab Branch Source Plugin 1.4.6
          • Ubuntu 16.04

           

          Scan GitLab Project Log

          Started [Sun Apr 26 20:09:52 UTC 2020] Starting branch indexing... Unable to detect if it is a mirror or not still fetching MRs anyway... Checking branches.. Checking branch

          dev

          ‘Jenkinsfile’ found but is a directory not a file Does not meet criteria Checking branch

          master

          ‘Jenkinsfile’ found but is a directory not a file Does not meet criteria 2 branches were processed Checking merge requests.. 0 merge requests were processed [Sun Apr 26 20:09:52 UTC 2020] Finished branch indexing. Indexing took 0.44 sec Finished: SUCCESS

          Show
          xtej Teja Swaroop Bezawada added a comment - Same issue Observed with: Jenkins 2.233 GitLab Branch Source Plugin 1.4.6 Ubuntu 16.04   Scan GitLab Project Log Started [Sun Apr 26 20:09:52 UTC 2020] Starting branch indexing... Unable to detect if it is a mirror or not still fetching MRs anyway... Checking branches.. Checking branch dev ‘Jenkinsfile’ found but is a directory not a file Does not meet criteria Checking branch master ‘Jenkinsfile’ found but is a directory not a file Does not meet criteria 2 branches were processed Checking merge requests.. 0 merge requests were processed [Sun Apr 26 20:09:52 UTC 2020] Finished branch indexing. Indexing took 0.44 sec Finished: SUCCESS
          Hide
          charleswb Charles Bozarth added a comment -

          Parichay Barpanda, Yes I am still seeing this issue.

          Show
          charleswb Charles Bozarth added a comment - Parichay Barpanda , Yes I am still seeing this issue.
          Hide
          djv David Jakob added a comment -

          In my case this message appears although it is present in the repo. The message shows the name of the

           Jenkinsfilename from the gitlab organization configuration.  I cannot find any solution to get the pipeline to be recognized.

          Show
          djv David Jakob added a comment - In my case this message appears although it is present in the repo. The message shows the name of the  Jenkinsfilename from the gitlab organization configuration.  I cannot find any solution to get the pipeline to be recognized.
          Hide
          gaukhar Gaukhar Akhmetova added a comment -

          Hello, Parichay Barpanda, is there any updates? I can't still run GitLAB repository on Jenkins multibranch pipelines, this issue currently showstopper for it. Could you pls share with your progress and deadlines, workaround please?

          With best regards,
          Gaukhar.

          Show
          gaukhar Gaukhar Akhmetova added a comment - Hello, Parichay Barpanda , is there any updates? I can't still run GitLAB repository on Jenkins multibranch pipelines, this issue currently showstopper for it. Could you pls share with your progress and deadlines, workaround please? With best regards, Gaukhar.
          Hide
          djv David Jakob added a comment -

          Hi,
          Now I’m using a later Gitlab version. This works.
          But I don’t get the web hooks from Gitlab to Jenkins working.

          Show
          djv David Jakob added a comment - Hi, Now I’m using a later Gitlab version. This works. But I don’t get the web hooks from Gitlab to Jenkins working.
          Hide
          gaukhar Gaukhar Akhmetova added a comment -

          Hi, David Jakob, Parichay Barpanda for last version of Gitlab there is no fix...same output still.

          This happens on multibranch pipelines

          Checking branch master
          ‘Jenkinsfile’ found but is a directory not a file
          Does not meet criteria

          Show
          gaukhar Gaukhar Akhmetova added a comment - Hi, David Jakob , Parichay Barpanda  for last version of Gitlab there is no fix...same output still. This happens on multibranch pipelines Checking branch master ‘Jenkinsfile’ found but is a directory not a file Does not meet criteria

            People

            Assignee:
            baymac Parichay Barpanda
            Reporter:
            charleswb Charles Bozarth
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated: