[JIRA] (JENKINS-49671) Can't configure jenkinsfile in subdirectory

2018-04-25 Thread amu...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Antonio Muñiz closed an issue as Fixed  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-49671  
 
 
  Can't configure jenkinsfile in subdirectory   
 

  
 
 
 
 

 
Change By: 
 Antonio Muñiz  
 
 
Status: 
 Open Closed  
 
 
Resolution: 
 Fixed  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

 
   
 

  
 

  
 

   





-- 
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-49671) Can't configure jenkinsfile in subdirectory

2018-02-22 Thread cypria...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Cyprian Śniegota commented on  JENKINS-49671  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Can't configure jenkinsfile in subdirectory   
 

  
 
 
 
 

 
 Similar, but little different solution  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

 
   
 

  
 

  
 

   





-- 
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-49671) Can't configure jenkinsfile in subdirectory

2018-02-22 Thread cypria...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Cyprian Śniegota edited a comment on  JENKINS-49671  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Can't configure jenkinsfile in subdirectory   
 

  
 
 
 
 

 
   JENKINS-49295 Similar, but little different solution  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

 
   
 

  
 

  
 

   





-- 
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-49671) Can't configure jenkinsfile in subdirectory

2018-02-22 Thread cypria...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Cyprian Śniegota commented on  JENKINS-49671  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Can't configure jenkinsfile in subdirectory   
 

  
 
 
 
 

 
 Created PR https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/111  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

 
   
 

  
 

  
 

   





-- 
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-49671) Can't configure jenkinsfile in subdirectory

2018-02-22 Thread yairo...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Yair Ogen commented on  JENKINS-49671  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Can't configure jenkinsfile in subdirectory   
 

  
 
 
 
 

 
 option 1 makes sense but something I wanted to avoid  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

 
   
 

  
 

  
 

   





-- 
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-49671) Can't configure jenkinsfile in subdirectory

2018-02-22 Thread cypria...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Cyprian Śniegota commented on  JENKINS-49671  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Can't configure jenkinsfile in subdirectory   
 

  
 
 
 
 

 
 
 
move jenkinsfiles to the main directory 
patch sources (one line to change in BitbucketServerAPIClient:120) and build Your version of jenkins plugin until it's fixed in mainstream. 
 We choose first one, so I don't have howto for the second.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

 
   
 

  
 

  
 

   





-- 
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-49671) Can't configure jenkinsfile in subdirectory

2018-02-22 Thread yairo...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Yair Ogen commented on  JENKINS-49671  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Can't configure jenkinsfile in subdirectory   
 

  
 
 
 
 

 
 Cyprian Śniegota I have the same issue. Any workaround?  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

 
   
 

  
 

  
 

   





-- 
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-49671) Can't configure jenkinsfile in subdirectory

2018-02-21 Thread cypria...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Cyprian Śniegota updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-49671  
 
 
  Can't configure jenkinsfile in subdirectory   
 

  
 
 
 
 

 
Change By: 
 Cyprian Śniegota  
 

  
 
 
 
 

 
 h2. Problem DescriptionIf You have Your Jenkinsfile in subdirectory, the result for searching is "Skipped"{code:java}Checking branch feature/JIR-123 from OWNER_1/repo_1  ‘jenkins/build/my.Jenkinsfile’ not foundSkipped{code}Multibranch Pipeline, mode: Jenkinsfile, Script path: jenkins/build/my.JenkinsfileProbably: BitbucketServerAPIClient.checkPathExists(..){code:java}String url = "">.fromTemplate(API_BROWSE_PATH).set("owner", "OWNER_1").set("repo", "repo_1").set("path", "jenkins/build/my.Jenkinsfile").set("at", "feature/JIR-123").expand();{code}url should contains "/rest/api/1.0/projects/OWNER_1/repos/repo_1/browse/jenkins/build/my.Jenkinsfile?at=feature%2FJIR-123"not /rest/api/1.0/projects/OWNER_1/repos/repo_1/browse/jenkins%2Fbuild%2Fmy.Jenkinsfile?at=feature%2FJIR-123Proposal for change (but I'm not sure about rules for UriTemplate):{code:java}120: private static final String API_BROWSE_PATH = API_REPOSITORY_PATH + "/browse/{+path}{?at}";{code} Or maybe it's a bug in UriTemplate as \{/path} is recognized as PATH type.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

 

[JIRA] (JENKINS-49671) Can't configure jenkinsfile in subdirectory

2018-02-21 Thread cypria...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Cyprian Śniegota created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-49671  
 
 
  Can't configure jenkinsfile in subdirectory   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Unassigned  
 
 
Components: 
 bitbucket-branch-source-plugin  
 
 
Created: 
 2018-02-21 13:16  
 
 
Environment: 
 Jenkins ver. 2.60.3  Bitbucket Branch Source Plugin 2.2.10  Pipeline: Multibranch 2.16  
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Cyprian Śniegota  
 

  
 
 
 
 

 
 Problem Description If You have Your Jenkinsfile in subdirectory, the result for searching is "Skipped" 

 

Checking branch feature/JIR-123 from OWNER_1/repo_1
  ‘jenkins/build/my.Jenkinsfile’ not found
Skipped 

 Multibranch Pipeline, mode: Jenkinsfile, Script path: jenkins/build/my.Jenkinsfile Probably: BitbucketServerAPIClient.checkPathExists(..) 

 

String url = ""
.fromTemplate(API_BROWSE_PATH)
.set("owner", "OWNER_1")
.set("repo", "repo_1")
.set("path", "jenkins/build/my.Jenkinsfile")
.set("at", "feature/JIR-123")
.expand(); 

 url should contains "/rest/api/1.0/projects/OWNER_1/repos/repo_1/browse/jenkins/build/my.Jenkinsfile?at=feature%2FJIR-123" not /rest/api/1.0/projects/OWNER_1/repos/repo_1/browse/jenkins%2Fbuild%2Fmy.Jenkinsfile?at=feature%2FJIR-123