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

GitLab Group Scan Incorrectly Reports Missing Jenkinsfile as a Directory

    XMLWordPrintable

Details

    • Improvement
    • Status: Open (View Workflow)
    • Critical
    • Resolution: Unresolved
    • None
    • Jenkins 2.204.2
      Windows Server 2016
      GitLab Branch Source Plugin 1.4.3

    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

          charleswb Charles Bozarth created issue -

          Are you still facing this issue charleswb?

          baymac Parichay Barpanda added a comment - Are you still facing this issue charleswb ?

          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

          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

          baymac, Yes I am still seeing this issue.

          charleswb Charles Bozarth added a comment - baymac , Yes I am still seeing this issue.
          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.

          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.

          Hello, baymac, 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.

          gaukhar Gaukhar Akhmetova added a comment - Hello, baymac , 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.
          gaukhar Gaukhar Akhmetova made changes -
          Field Original Value New Value
          Priority Minor [ 4 ] Critical [ 2 ]
          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.

          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.

          Hi, djv, baymac 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

          gaukhar Gaukhar Akhmetova added a comment - Hi, djv , baymac  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

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

            Dates

              Created:
              Updated: