[JIRA] (JENKINS-48361) ‘Jenkinsfile’ not found when PR triggers a build with Bitbucket

3 views
Skip to first unread message

terjekid@gmail.com (JIRA)

unread,
Feb 14, 2018, 4:43:03 AM2/14/18
to jenkinsc...@googlegroups.com
László Terjéki commented on Bug JENKINS-48361
 
Re: ‘Jenkinsfile’ not found when PR triggers a build with Bitbucket

I faced with the same issue like in comment-321827 by Tim Downey: Lightweight checkout not working for PRs.

As I found the issue came in with version 2.2.6 when the bitbucket REST is used to get the content of Jenkinsfile instead of cloning it. The configuration for the BitBucket source to use HEAD instead of merge and also a BitBucket server is used.

Is there anything can be done to avoid this kind of issue?

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

terjekid@gmail.com (JIRA)

unread,
Feb 14, 2018, 4:44:02 AM2/14/18
to jenkinsc...@googlegroups.com
László Terjéki edited a comment on Bug JENKINS-48361
I faced with the same issue like in [# comment-321827 ] by [~timdowney]: Lightweight checkout not working for PRs.


As I found the issue came in with version 2.2.6 when the bitbucket REST is used to get the content of Jenkinsfile instead of cloning it. The configuration for the BitBucket source to use HEAD instead of merge and also a BitBucket server is used.

Is there anything can be done to avoid this kind of issue?

vivek.pandey@gmail.com (JIRA)

unread,
Mar 13, 2018, 12:09:29 PM3/13/18
to jenkinsc...@googlegroups.com

stacy.bowler@sdl.usu.edu (JIRA)

unread,
Apr 5, 2018, 5:07:03 PM4/5/18
to jenkinsc...@googlegroups.com
Stacy Bowler commented on Bug JENKINS-48361
 
Re: ‘Jenkinsfile’ not found when PR triggers a build with Bitbucket

We have just started trying to use the latest Jenkins LTS release and set up some pipelines and are seeing no Jenkins file on PR's quite a bit when there are some so it will not trigger a build. A lot of times when trying to manually run the build it seems to disable the job and won't run it from blue ocean. It seems pretty buggy. There seem to be quite a few little issues and annoyances. FWIW we are using an Enterprise (I suppose datacenter) internal Bitbucket server.

Can someone at least tell me the bitbucket API that it is using to try to check if there's a Jenkins file so I can at least confirm the API is not properly reporting it.

sven.oppermann@gmail.com (JIRA)

unread,
Apr 11, 2018, 6:54:03 AM4/11/18
to jenkinsc...@googlegroups.com

I can see this problem currently too and it currently happens only when using a fork. If we work with the main repo directly i didnt see this behavior.  We dont use Bitbucket Datacenter.

bitwiseman@gmail.com (JIRA)

unread,
May 29, 2019, 12:53:03 PM5/29/19
to jenkinsc...@googlegroups.com

Sven Oppermann, Stacy Bowler, Tim Downey
Are you still seeing this issue?

This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

stacy.bowler@sdl.usu.edu (JIRA)

unread,
May 30, 2019, 11:15:03 AM5/30/19
to jenkinsc...@googlegroups.com

I dont' think I've seen an issue like this in some time. Currently our Jenkins server is firewalled off from the Bitbucket server so we can only pull and are not even using webhooks. 

Reply all
Reply to author
Forward
0 new messages