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

2018-05-24 Thread scm_issue_l...@java.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 SCM/JIRA link daemon commented on  JENKINS-51521  
 

  
 
 
 
 

 
 
  
 
 
 
 

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

  
 
 
 
 

 
 Code changed in jenkins User: Boguslaw Klimas Path: src/main/java/net/uaznia/lukanus/hudson/plugins/gitparameter/GitParameterDefinition.java http://jenkins-ci.org/commit/git-parameter-plugin/534a2fc768b45d9b03514718824f8e48aacd0490 Log: Merge pull request #65 from jenkinsci/feature/JENKINS-51521 JENKINS-51521: Default value for sortMode Compare: https://github.com/jenkinsci/git-parameter-plugin/compare/2369bfe8e101...534a2fc768b4 *NOTE:* This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/  Functionality will be removed from GitHub.com on January 31st, 2019.  
 

  
 
 
 
 

 
 
 

 
 
 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 scm_issue_l...@java.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 SCM/JIRA link daemon commented on  JENKINS-51521  
 

  
 
 
 
 

 
 
  
 
 
 
 

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

  
 
 
 
 

 
 Code changed in jenkins User: klimas7 Path: src/main/java/net/uaznia/lukanus/hudson/plugins/gitparameter/GitParameterDefinition.java http://jenkins-ci.org/commit/git-parameter-plugin/0c75bbfca2c894c7ccabefe528090b3813f15987 Log: JENKINS-51521: Default value for sortMode  *NOTE:* This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/  Functionality will be removed from GitHub.com on January 31st, 2019.  
 

  
 
 
 
 

 
 
 

 
 
 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 klim...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Boguslaw Klimas commented on  JENKINS-51521  
 

  
 
 
 
 

 
 
  
 
 
 
 

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

  
 
 
 
 

 
 Hi, If you useing the Snippet Generator, you should receive the complet the parameter definition, where all required field are initialization. 

 

properties([
parameters([
[
$class: 'GitParameterDefinition', 
branch: '', 
branchFilter: '.*', 
defaultValue: '', 
description: '', 
name: 'BRANCH', 
quickFilterEnabled: false, 
selectedValue: 'NONE', 
sortMode: 'NONE', 
tagFilter: '*', 
type: 'PT_BRANCH'
]
])
])
 

 Regardless, I will introduce the appropriate change. Regards Boguslaw  
 

  
 
 
 
 

 
 
 

 
 
 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 klim...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Boguslaw Klimas started work on  JENKINS-51521  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
Change By: 
 Boguslaw Klimas  
 
 
Status: 
 Open In Progress  
 

  
 
 
 
 

 
 
 

 
 
 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)}  }{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
)
}
}