[JIRA] (JENKINS-51521) Git parameter does not show branch list in case deleteDir() is present in pipeline

2018-05-24 Thread mikita_makare...@epam.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mikita Makarenka edited a comment on  JENKINS-51521  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Git parameter does not show branch list in case deleteDir() is present in pipeline   
 

  
 
 
 
 

 
 Looks like I managed to walk around but it still some kind of bug from my point of view: The solution was to explictly specify "sortMode" in "properties" declaration{code:java}node {properties([parameters([[$class: 'GitParameterDefinition',name: 'gitBranch',listSize: '0',type: 'PT_BRANCH',sortMode: 'DESCENDING']])   ])stage ("2") {cleanWs()}stage("First stage") {git (url: git_url,credentialsId: git_cred)}  }{code}  
 

  
 
 
 
 

 
 
 

 
 
 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-51521) Git parameter does not show branch list in case deleteDir() is present in pipeline

2018-05-24 Thread mikita_makare...@epam.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mikita Makarenka commented on  JENKINS-51521  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Git parameter does not show branch list in case deleteDir() is present in pipeline   
 

  
 
 
 
 

 
 Looks like I managed to walk around but it still some kind of bug from my point of view: The solution was to explictly specify "sortMode" in "properties" declaration 

 

node {
properties([
parameters([
[
$class: 'GitParameterDefinition',
name: 'gitBranch',
listSize: '0',
type: 'PT_BRANCH',
sortMode: 'DESCENDING'
]
])   
])


stage("First stage") {
git (
url: git_url,
credentialsId: git_cred
)
}
stage ("2") {
cleanWs()
}
}
 

  
 

  
 
 
 
 

 
 
 

 
 
 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-51521) Git parameter does not show branch list in case deleteDir() is present in pipeline

2018-05-24 Thread mikita_makare...@epam.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mikita Makarenka edited a comment on  JENKINS-51521  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Git parameter does not show branch list in case deleteDir() is present in pipeline   
 

  
 
 
 
 

 
 Looks like I managed to walk around but it still some kind of bug from my point of view:The solution was to explictly specify "sortMode" in "properties" declaration{code:java}node {properties([parameters([[$class: 'GitParameterDefinition',name: 'gitBranch',listSize: '0',type: 'PT_BRANCH',sortMode: 'DESCENDING']])   ]) stage ("2") {  cleanWs()} stage("First stage") {git (url: git_url,credentialsId: git_cred)} stage ("2") {  cleanWs() } } {code}   
 

  
 
 
 
 

 
 
 

 
 
 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-51521) Git parameter does not show branch list in case deleteDir() is present in pipeline

2018-05-24 Thread mikita_makare...@epam.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mikita Makarenka created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-51521  
 
 
  Git parameter does not show branch list in case deleteDir() is present in pipeline   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Boguslaw Klimas  
 
 
Attachments: 
 jenkins_error_log.txt, jenkins_ui_error.png  
 
 
Components: 
 git-parameter-plugin, pipeline  
 
 
Created: 
 2018-05-24 11:45  
 
 
Environment: 
 OS: Linux Mint 18.3 (Debian)  Jenkins version: 2.107.2  git-parameter-plugin version: 0.9.2  Jenkins have only master node   
 
 
Priority: 
  Minor  
 
 
Reporter: 
 Mikita Makarenka  
 

  
 
 
 
 

 
 
 
At the beginning I have a code (git_url and git_cred are defined, i just hidden them): 

 

node {
properties([
parameters([
[
$class: 'GitParameterDefinition',
name: 'gitBranch',
listSize: '0',
type: 'PT_BRANCH',
 ]
 ])   
])
stage("First stage") {
git (
url: git_url,
credentialsId: git_cred
)
}
}