[JIRA] [workflow-plugin] (JENKINS-33022) Allow Git shallow clone in Multibranch pipeline

2016-06-12 Thread dodoentertainm...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Nenad Miksa commented on  JENKINS-33022 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Allow Git shallow clone in Multibranch pipeline  
 
 
 
 
 
 
 
 
 
 
OK, solved by adding permission in In Process Script Approval options. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [workflow-plugin] (JENKINS-33022) Allow Git shallow clone in Multibranch pipeline

2016-06-12 Thread dodoentertainm...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Nenad Miksa commented on  JENKINS-33022 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Allow Git shallow clone in Multibranch pipeline  
 
 
 
 
 
 
 
 
 
 
Maciej Nowak, your trick causes following exception on my side: 
org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use method hudson.plugins.git.GitSCM getBranches 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [workflow-plugin] (JENKINS-33022) Allow Git shallow clone in Multibranch pipeline

2016-03-11 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Jesse Glick resolved as Duplicate 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-33022 
 
 
 
  Allow Git shallow clone in Multibranch pipeline  
 
 
 
 
 
 
 
 
 

Change By:
 
 Jesse Glick 
 
 
 

Status:
 
 Open Resolved 
 
 
 

Resolution:
 
 Duplicate 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [workflow-plugin] (JENKINS-33022) Allow Git shallow clone in Multibranch pipeline

2016-02-19 Thread maciejt.no...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Maciej Nowak commented on  JENKINS-33022 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Allow Git shallow clone in Multibranch pipeline  
 
 
 
 
 
 
 
 
 
 
I've done something like this: 

 

Unable to find source-code formatter for language: groovy. Available languages are: actionscript, html, java, _javascript_, none, sql, xhtml, xml


  checkout([
$class: 'GitSCM',
branches: scm.branches,
doGenerateSubmoduleConfigurations: scm.doGenerateSubmoduleConfigurations,
extensions: scm.extensions + [[$class: 'CloneOption', noTags: false, reference: '', shallow: true]],
submoduleCfg: [],
userRemoteConfigs: scm.userRemoteConfigs
  ])
 

 
It didn't failed with exception but there still is no --depth parameter in git fetch call 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [workflow-plugin] (JENKINS-33022) Allow Git shallow clone in Multibranch pipeline

2016-02-19 Thread mark.ottavi...@ssa.gov (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Mark Ottaviani commented on  JENKINS-33022 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Allow Git shallow clone in Multibranch pipeline  
 
 
 
 
 
 
 
 
 
 
A checkout scm step still need to know where it's getting code from, which is probably the source of the error.  
userRemoteConfigs: [[credentialsId: 'x', url: 'ssh://g...@yoursite.com/project/repo.git']] 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [workflow-plugin] (JENKINS-33022) Allow Git shallow clone in Multibranch pipeline

2016-02-19 Thread maciejt.no...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Maciej Nowak commented on  JENKINS-33022 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Allow Git shallow clone in Multibranch pipeline  
 
 
 
 
 
 
 
 
 
 
When I used: 

 

Unable to find source-code formatter for language: groovy. Available languages are: actionscript, html, java, _javascript_, none, sql, xhtml, xml


checkout scm: [
 $class: 'GitSCM',
 extensions: [
   [$class: 'CloneOption', noTags: false, reference: '', shallow: true]
 ]
   ]
 

 
I got error:  

 
ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
 

 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [workflow-plugin] (JENKINS-33022) Allow Git shallow clone in Multibranch pipeline

2016-02-19 Thread mark.ottavi...@ssa.gov (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Mark Ottaviani commented on  JENKINS-33022 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Allow Git shallow clone in Multibranch pipeline  
 
 
 
 
 
 
 
 
 
 
You can do a shallow git clone using the "checkout: General SCM" step instead of the Git step.  
The snippet generator will provide the code.  
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
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] [workflow-plugin] (JENKINS-33022) Allow Git shallow clone in Multibranch pipeline

2016-02-18 Thread maciejt.no...@gmail.com (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Maciej Nowak created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Jenkins /  JENKINS-33022 
 
 
 
  Allow Git shallow clone in Multibranch pipeline  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  New Feature 
 
 
 

Assignee:
 
 Jesse Glick 
 
 
 

Components:
 

 workflow-plugin 
 
 
 

Created:
 

 18/Feb/16 10:01 PM 
 
 
 

Labels:
 

 multibranch 
 
 
 

Priority:
 
  Major 
 
 
 

Reporter:
 
 Maciej Nowak 
 
 
 
 
 
 
 
 
 
 
Cloning full Git repository can take a long time (in my case over 10 minutes which results in timeout). 
In the freestyle project I can specify additional clone options like shallow clone. Unfortunatelny I cannot do this in Multibranch Pipeline project with Jenkinsfile. 
I've tried modifying scm.extensions using code like this: 

 

@NonCPS
def checkout_src() {
  def copt = new CloneOption(true, "", 999)

  def r = scm.extensions.add(copt)

  echo "${scm.extensions}"

  checkout scm

  scm.extensions.remove(copt)
}
 

 
However when executed CloneOption is not added to extensions: 

 
Extensions: