[JIRA] (JENKINS-54126) Jenkinsfile not found in PR on GitHub

2018-12-29 Thread i...@soar.name (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Aleksey Smyrnov commented on  JENKINS-54126  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Jenkinsfile not found in PR on GitHub   
 

  
 
 
 
 

 
 I can confirm that -Dorg.jenkinsci.plugins.github_branch_source.GitHubSCMSource.cacheSize=0 doesn't help. Only cronjob which removes cache directory every one minute did the trick.    
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-54126) Jenkinsfile not found in PR on GitHub

2018-10-25 Thread i...@soar.name (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Aleksey Smyrnov commented on  JENKINS-54126  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Jenkinsfile not found in PR on GitHub   
 

  
 
 
 
 

 
 Looks like working branch rebasing causes this issue  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-54126) Jenkinsfile not found in PR on GitHub

2018-10-17 Thread i...@soar.name (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Aleksey Smyrnov commented on  JENKINS-54126  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Jenkinsfile not found in PR on GitHub   
 

  
 
 
 
 

 
 Today my colleague has faced same problem in another organization/repo.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-54126) Jenkinsfile not found in PR on GitHub

2018-10-17 Thread i...@soar.name (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Aleksey Smyrnov updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-54126  
 
 
  Jenkinsfile not found in PR on GitHub   
 

  
 
 
 
 

 
Change By: 
 Aleksey Smyrnov  
 

  
 
 
 
 

 
 Sometimes, when we create PR on GitHub - it is ignored by Jenkins. I've tried to re-scan organization - and see in logs:{code:java}  Getting remote pull requests...Checking pull request #128  ‘Jenkinsfile’ not foundDoes not meet criteria{code}But Jenkinsfile is here! I see other bugs in your Jira and here is some additional information: * Repository is added to Jenkins via GitHub Organization Folder * We don't use forks * Commiter is a member of our organization and has full rights on this repository * Problem PRs are also very simple and doesn't touch Jenkinsfile at all * Source PR branch has Jenkinsfile * Branch which we want to merge - was created from source branch and also has Jenkinsfile * Jenkinsfile was not changed between merge commits * If I merge branches manually - result has Jenkinsfile * If we do merge on GitHub UI - result will have Jenkinsfile (and will be built) * If we recreate same pull request several times - it will be builtAnd more logs:{code:java}Examining our-organization/our-repo:      Checking branches...      Getting remote branches...  Checking branch master  ‘Jenkinsfile’ foundMet criteriaNo changes detected: master (still at 923197f48be5cd8296b8ca95bd72a4a830a474f4)  Checking branch develop  ‘Jenkinsfile’ foundMet criteriaNo changes detected: develop (still at 43c2cce36623a4af90b28d886dfb28ea8d813ab8)  Checking branch feature/198-video-verification  ‘Jenkinsfile’ foundMet criteriaNo changes detected: feature/198-video-verification (still at 9126f0c6958db3c712078ed0d2587e96004d27c6)      3 branches were processed      Checking pull-requests...      Getting remote pull requests...  Checking pull request #128  ‘Jenkinsfile’ not foundDoes not meet criteria{code}PR #128 - is between develop and feature/198-video-verification - and, as you can see, both have Jenkinsfile and were built successfully.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

[JIRA] (JENKINS-54126) Jenkinsfile not found in PR on GitHub

2018-10-17 Thread i...@soar.name (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Aleksey Smyrnov created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-54126  
 
 
  Jenkinsfile not found in PR on GitHub   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Kohsuke Kawaguchi  
 
 
Components: 
 github-api-plugin, github-organization-folder-plugin  
 
 
Created: 
 2018-10-17 11:37  
 
 
Environment: 
 Jenkins ver. 2.138.2  
 
 
Priority: 
  Major  
 
 
Reporter: 
 Aleksey Smyrnov  
 

  
 
 
 
 

 
 Sometimes, when we create PR on GitHub - it is ignored by Jenkins. I've tried to re-scan organization - and see in logs: 

 

  Getting remote pull requests...

Checking pull request #128
  ‘Jenkinsfile’ not found
Does not meet criteria
 

 But Jenkinsfile is here! I see other bugs in your Jira and here is some additional information: 
 
Repository is added to Jenkins via GitHub Organization Folder 
We don't use forks 
Commiter is a member of our organization and has full rights on this repository 
Problem PRs are also very simple and doesn't touch Jenkinsfile at all 
Source PR branch has Jenkinsfile 
Branch which we want to merge - was created from source branch and also has Jenkinsfile 

[JIRA] (JENKINS-45997) BitBucket PRs failing to checkout on initial run after PR updated with new commits

2018-04-16 Thread i...@soar.name (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Aleksey Smyrnov commented on  JENKINS-45997  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: BitBucket PRs failing to checkout on initial run after PR updated with new commits   
 

  
 
 
 
 

 
 I've faced same problem today - but with GitHub and it's Pull Requests: 

 

Pull request #339 updated
16:23:22 Connecting to https://api.github.com using botaccount/** (botaccount-github-userpass)
Checking out git g...@github.com:team/project.git into /var/jenkins_home/workspace/team_unilanding_PR-339-QD7W5G5UCQBK3XJQYNPM6GQDRVGPY6TQABV6SD4RWHXU2EDQR65A@script to read Jenkinsfile
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url g...@github.com:team/project.git # timeout=10
Fetching without tags
Fetching upstream changes from g...@github.com:team/project.git
 > git --version # timeout=10
using GIT_SSH to set credentials botaccount-github-ssh-key
 > git fetch --no-tags --progress g...@github.com:team/project.git +refs/pull/339/head:refs/remotes/origin/PR-339 +refs/heads/master:refs/remotes/origin/master
Merging remotes/origin/master commit bb79fa5bd122fa0fac4608d10a9ccd41dc2e72f7 into PR head commit dc38ea253251ca79a4587c20b25b425ede135de7
 > git config core.sparsecheckout # timeout=10
 > git checkout -f dc38ea253251ca79a4587c20b25b425ede135de7

GitHub has been notified of this commit’s build result

hudson.plugins.git.GitException: Command "git checkout -f dc38ea253251ca79a4587c20b25b425ede135de7" returned status code 128:
stdout:
stderr: fatal: reference is not a tree: dc38ea253251ca79a4587c20b25b425ede135de7

    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1996)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$800(CliGitAPIImpl.java:72)
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.execute(CliGitAPIImpl.java:2295)
Caused: hudson.plugins.git.GitException: Could not checkout dc38ea253251ca79a4587c20b25b425ede135de7
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.execute(CliGitAPIImpl.java:2319)
    at jenkins.plugins.git.MergeWithGitSCMExtension.checkout(MergeWithGitSCMExtension.java:146)
    at jenkins.plugins.git.MergeWithGitSCMExtension.decorateRevisionToBuild(MergeWithGitSCMExtension.java:112)
    at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:1068)
    at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1161)
    at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:113)
    at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:143)
    at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:120)
    at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:295)
    at hudson.model.ResourceController.execute(ResourceController.java:97)
    at hudson.model.Executor.run(Executor.java:429)
Finished: FAILURE
 

   Only closing old PR and re-creating it can solve this problem. Need this fix for GitHub.