linux slave won't connect

2016-08-09 Thread Gergely Brautigam
Have you tried restarting it? Is there an ip collision? 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/112e8f0a-d634-4f9a-9cd7-689131820358%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Aggregating Downstream test results - Not working though everything is setup fine

2016-08-09 Thread Gergely Brautigam
Hi Alok! 

The clue is this part:

"What I did wrong was that, in the upstream job I waited for the downstreams to 
finish. And that was wrong!"

This means that your jobs aren't finishing before that. It needs to be a fire 
and forget, because, as you said, the post build action must run. Now, this 
might not fit your scenario, in which case you might have to run some 
intermediary job which aggregates for your other jobs. 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/262d0538-c254-4315-a2c1-72c14f00ab00%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins multi-branch pipeline and specifying upstream projects

2016-08-09 Thread Fred Clausen
Hello All,

We currently generate a lot of Jenkins jobs on a per Git branch basis using 
Jenkins job DSL; the multi-branch pipeline plugin looks like an interesting 
way to potentially get first-class job generation support using 
Jenkinsfiles and reduce the amount of Job DSL we maintain.

For example suppose we have libwidget and widget-server develop branch 
projects. When the libwidget build finishes then the widget-server job is 
triggered (for the develop branch). This applies to other branches too. 
This makes use of the "Build after other projects are built" setting to 
trigger builds upon completion of an upstream build (e.g. libwidget causes 
widget-server to be built).

It seems that the multi-branch pipeline plugin lacks the "Build after other 
projects are built" setting - how would we accomplish the above in the 
multi-branch pipeline build?

Regards,

Fred.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0b6cbfd9-c006-49d6-abc7-76fa1cf833c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to save MS Test's result in a Jenkins variable?

2016-08-09 Thread Umesh Chhabra
Hello Everyone,

One of my Jenkins job is executing MS Test. I am passing the following 
value to the MS Test plugin:

*del TestResults.trx*
*"C:\Program Files (x86)\Microsoft Visual Studio 
12.0\Common7\IDE\MSTest.exe" 
/testcontainer:D:\Projects\Jenkins\TestResultVerificationFromJenkins\TestResultVerificationFromJenkins\bin\Debug\TestResultVerificationFromJenkins.dll
 
/resultsfile:TestResults.trx /nologo /detail:stdout*


At the time of execution, Console Output is displaying the following values:

*Starting execution...
Results   Top Level Tests
---   ---
PassedTestResultVerificationFromJenkins.UnitTest1.PassTest
[stdout] = Test is passed

1/1 test(s) Passed
Summary
---
Test Run Completed.
  Passed  1
  -
  Total   1
Results file:  C:\Program Files 
(x86)\Jenkins\jobs\JenkinsTestResultReader\workspace\TestResults.trx
Test Settings: Default Test Settings*


In the post build step, I have to pass the MS test result "*Test is passed" *  
to a HTTP Request.


Is there any way to save this result in a Jenkins variable so that I can pass 
that to HTTP Request?


Regards,

Umesh

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/e4eefa82-e95e-4e3a-9af7-2381cafb750e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins Pipeline: how to access credentials variable??

2016-08-09 Thread Phil Swenson
I am using the Jenkins Pipeline Plugin, but having trouble getting my 
docker config credential to do what I need.


using code like:

node('docker-slave') { 

withCredentials([[$class: 'UsernamePasswordMultiBinding', 
credentialsId: 'NEXUS', usernameVariable: 'NEXUS_USERNAME', 
passwordVariable: 'NEXUS_PASSWORD'],
 [$class: 'FileBinding', credentialsId: 'DOCKER_REGISTRY', variable: 
'DOCKER_CONFIG_PATH']]) {
def dockerConfigPath = "$DOCKER_CONFIG_PATH"




the dockerConfigPath above does not get populated as I'd hope...



The variable DOCKER_CONFIG_PATH passes in the absolute path to the docker 
config file. I only need the directory path, NOT the file path. 

So if the DOCKER_CONFIG_PATH is something like 
/jenkins/tmp/393939kdk/config.json , I need to set the DOCKER_CONFIG 
environment variable to  /jenkins/tmp/393939kdk/

Given all the security stuff that's built in to the groovy script, I 
haven't been able to do this.

My question boils down to this:  how do I get access to the variable 
DOCKER_CONFIG_PATH that is pulled from the credentials.  I need to drop the 
filename at the end off the string.



Thanks
phil

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/03da6c39-62c7-4ce6-8a69-840b3f967f91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Jenkins 2.0 Piplines with GitHub Organization Folder Plugin and API rate_limit issues

2016-08-09 Thread 'Kyle Partridge' via Jenkins Users
I have an organization that has > 300 repos. When I try to use the github 
organization folder plugin 
 
to build pipelines in Jenkins 2.0, I will always hit the rate_limit and the 
process that builds the jobs errors out, due to the 5000 requests per hour 
that github enforces. I knew this would be a problem, as I have had similar 
problems with the GitHub Pull Request Builder 

 
plugin in the past.

Is this a plugin that I cannot use without upgrading to GitHub enterprise? 
Is there any alternative way of using this plugin that would work for our 
situation? I have attempted using the event webhooks, but that ultimately 
seems to lead to the same problem.


Any thoughts here?




Thanks,

Kyle Partridge

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/c5399236-52eb-4ab1-8c5f-1b1b9a7b1aff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Publishing git tags from pipeline

2016-08-09 Thread Mark Waite
https://issues.jenkins-ci.org/browse/JENKINS-28335 discusses the request to
publish tags and commits from workflow.

Mark Waite

On Tue, Aug 9, 2016 at 10:40 AM Rob Oxspring  wrote:

> Hi,
>
> I'm using an uptodate Jenkins 2.7.2 and trying to use the new pipeline
> syntax to create a job that will perform a build and then create a tag in
> git if successful.
>
> I was expecting to reuse the GitPublisher but that doesn't seem to be
> available according to the pipeline syntax helper. I assume that means that
> it's not a pipeline compatible build step and not that I just need to
> figure out undocumented syntax to make it work!
>
> Is there a different way I should be going about this?
>
> What changes would be required in the GitPublisher in order to become
> pipeline compatible?
>
> Thanks,
>
> Rob
>
>
>
>
> node() {
>   deleteDir()
>
>   checkout scm
>   java = tool 'JDK8'
>   mvn = tool 'M3'
>
>   withEnv(["JAVA_HOME=${java}"]) {
> opts = "--batch-mode --fail-at-end"
> sh "${mvn}/bin/mvn ${opts} install"
>   }
>
>   // if successful
>   //   create git tag:
>   //   archive/publish artifacts: archive 'target/*.zip, target/*.tar.gz'
> }
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/d5d03313-b7f0-4a83-b8e3-5c5dc398f5fc%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtE-7%3D%3DLt7W_VQHor%3D%2BsOdo7zr5%2BRFztbpd4L%2BWPyB8GKw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Send custom message to Flowdock chat

2016-08-09 Thread Anjib Mulepati
Hi All,

Is there a way a to send custom message to the Flowdock chat. Right now I 
have a dsl as:

flowdock(FlowdockUtils.FLOWDOCK_TOKEN) { chat() success(false) fixed(false) 
} 
And it is sending something like "*My Job build 4465 failed*" I need to add 
something like @team in that message.

Any suggestion?

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/638f436b-e425-449a-bfba-8b3ac4250a25%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Publishing git tags from pipeline

2016-08-09 Thread Rob Oxspring
Hi,

I'm using an uptodate Jenkins 2.7.2 and trying to use the new pipeline 
syntax to create a job that will perform a build and then create a tag in 
git if successful.

I was expecting to reuse the GitPublisher but that doesn't seem to be 
available according to the pipeline syntax helper. I assume that means that 
it's not a pipeline compatible build step and not that I just need to 
figure out undocumented syntax to make it work!

Is there a different way I should be going about this?

What changes would be required in the GitPublisher in order to become 
pipeline compatible?

Thanks,

Rob




node() {
  deleteDir()
  
  checkout scm
  java = tool 'JDK8'
  mvn = tool 'M3'
  
  withEnv(["JAVA_HOME=${java}"]) {
opts = "--batch-mode --fail-at-end"
sh "${mvn}/bin/mvn ${opts} install"
  }

  // if successful
  //   create git tag: 
  //   archive/publish artifacts: archive 'target/*.zip, target/*.tar.gz'
}

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d5d03313-b7f0-4a83-b8e3-5c5dc398f5fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: remove nodes from job

2016-08-09 Thread Mark Waite
The "platform labeler plugin" automatically labels agents for operating
system name and version ("Ubuntu", "windows", "Debian 8.0", etc.)

The implied labels plugin allows me to create labels based on boolean
combinations of other labels (like "old-git" is defined as "CentOS ||
RedHatEnterpriseServer").

Mark Waite

On Tue, Aug 9, 2016 at 10:11 AM 'Björn Pedersen' via Jenkins Users <
jenkinsci-users@googlegroups.com> wrote:

> Hi,
>
> a bit more details would have been fine. I guess you are using a
> multi-configuration job.
> Probably take a look at
> https://wiki.jenkins-ci.org/display/JENKINS/NodeLabel+Parameter+Plugin
>
> Alternativly,  add a parameter with allowed label (possibly using one of
> the advance Param plugins likehttps://
> wiki.jenkins-ci.org/display/JENKINS/Extended+Choice+Parameter+plugin )
> and use this value in the labels field.
>
>
> Björn
>
>
> On Tuesday, August 9, 2016 at 4:57:47 AM UTC+2, Kaushal Shriyan wrote:
>>
>> Hi,
>>
>> Is there a way to remove node config for a particular job? for example i
>> have the job by the name smstask and there are 4 tomcat servers tomcat1,2,3
>> and 4
>> and is there a way to uncheck tomcat 3 and 4 when i execute the job
>> smstask. In short smstask job will deploy only on tomcat1 and 2 and *not
>> on tomcat 3 and 4*
>>
>> Any help will be highly appreciable.
>>
>> Regards,
>>
>> Kaushal
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/932e7717-f558-4f80-a82d-ef2822dfc65b%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtHpXoPpFN2mif%2Bte90Nvr%2BxHyJ--0DS9jbyRkEM4Ufm1Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: remove nodes from job

2016-08-09 Thread 'Björn Pedersen' via Jenkins Users
Hi,

a bit more details would have been fine. I guess you are using a 
multi-configuration job.
Probably take a look at 
https://wiki.jenkins-ci.org/display/JENKINS/NodeLabel+Parameter+Plugin

Alternativly,  add a parameter with allowed label (possibly using one of 
the advance Param plugins 
likehttps://wiki.jenkins-ci.org/display/JENKINS/Extended+Choice+Parameter+plugin
 
)
and use this value in the labels field.


Björn

On Tuesday, August 9, 2016 at 4:57:47 AM UTC+2, Kaushal Shriyan wrote:
>
> Hi,
>
> Is there a way to remove node config for a particular job? for example i 
> have the job by the name smstask and there are 4 tomcat servers tomcat1,2,3 
> and 4
> and is there a way to uncheck tomcat 3 and 4 when i execute the job 
> smstask. In short smstask job will deploy only on tomcat1 and 2 and *not 
> on tomcat 3 and 4*
>
> Any help will be highly appreciable.
>
> Regards,
>
> Kaushal
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/932e7717-f558-4f80-a82d-ef2822dfc65b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


linux slave won't connect

2016-08-09 Thread 'Brian' via Jenkins Users
I have a vmware box running 3 linux machines configured the same bar ip 
details etc, one of them has suddenly failed to connect.

[08/09/16 16:45:22] [SSH] Authentication successful.
[08/09/16 16:45:22] [SSH] The remote users environment is:
BASH=/bin/bash
BASHOPTS=cmdhist:extquote:force_fignore:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath
BASH_ALIASES=()
BASH_ARGC=()
BASH_ARGV=()

ERROR: Unexpected error in launching a slave. This is probably a bug in 
Jenkinsjava.util.concurrent.CancellationException 

at java.util.concurrent.FutureTask.report(FutureTask.java:121) 

at java.util.concurrent.FutureTask.get(FutureTask.java:192) 

at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:754) 

at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:253) 

at 
jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
 

at java.util.concurrent.FutureTask.run(FutureTask.java:266) 

at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 

at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 

at java.lang.Thread.run(Thread.java:745) 


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a9a9560b-8a22-48bb-82bf-ce639afe00a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Where does the JUnit plugin save results?

2016-08-09 Thread Markus Axelsson
I to have the same question so I'm bumping this thread.

When I look at the graph of Test Results Trend I see e.g 140 tests (#101):



But when I click on that build in the graph I am taken to the test result 
page where it instead says 161 tests.


So it seems as the graphs does load all data.



On Saturday, April 2, 2016 at 12:37:54 AM UTC+2, Nestor Torres wrote:
>
> *Context:*
> I'm working with a (suse-based) linux VM that has jenkins 1.644-1.2 
> installed.
>
> *What:*
> Where does the JUnit plugin 
>  save results? 
> What I'm referring to is the graph of "Test Results Trend." I looked 
> through the source code  for a 
> while but found nothing.
>
> *Why:*
> I want to delete one errant build from the results, because deleting the 
> build from jenkins didn't remove the result from the graph.
>
> Thanks!
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/4a849a24-8c86-4848-a4e6-23776abc849a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: remove nodes from job

2016-08-09 Thread mosh5cis

Here is how you can restrict a job to run on a specified set of nodes

1. Go to "smstask" job's configuration
2. Search "Restrict where this project can be run" checkbox and check it
3. In "Label Expression" that shows up, enter the labels of the nodes on 
which you would like to restrict "smstask" job to run. In this cases 
'tomcat1' and 'tomcat2'. 
4. Save the configuration

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f7eb6ee4-da60-4681-b216-8e9dcaf56dd6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Unable to view Test Result Link

2016-08-09 Thread sandhyaranimukkamala922
Thanks for the reply Flx!
We will try it and let you know the result.

On Monday, August 8, 2016 at 12:39:28 PM UTC-7, flx wrote:
>
> Maybe you should use xunit plugin to transform and publish the xmlreports.
>
> I'm not familiar with mstest but I use this technique for publishing 
> cppunit and ctest result reports, and
>
> xunit has an option to publish mstest results too.
>
> On 2016-08-08 12:58, sandhyarani...@gmail.com  wrote:
>
> Thanks for the reply Suresh!
> We used C# code with MSTest framework.\
> We tried to get the .xml report by using "Publish JUnit test result 
> Report" in the Post Build action.
> We tried to give the path to create an xml report in the workspace, but it 
> throws the below error.
>
> "ERROR: Step ‘Publish JUnit test result report’ failed: No test report files 
> were found. Configuration error?"*Could please provide us steps to configure 
> the Junit test result report.*
>
>
> We also configured test result analyzer plugin, but gets the error as 
> shown in the attachment.
>
> Which needs to be displaying the results as shown in this page 
> https://wiki.jenkins-ci.org/display/JENKINS/Test+Results+Analyzer+Plugin
>
> Regards,
> Sandhya
>
>
> On Saturday, August 6, 2016 at 2:54:37 AM UTC-7, suresh kumar wrote: 
>>
>> Hi Sandhya,
>> Which technology you are using for writing unit tests, e.g. NUnit or 
>> VSTests or MSTests
>> In the post build section respective report publisher we have to choose 
>> and providing the path of xml report generated by the executor.
>> So that the Unit Tests results will be populated in Jenkins
>>
>> -Suresh
>>
>> On Friday, August 5, 2016 at 11:40:23 AM UTC+5:30, 
>> sandhyarani...@gmail.com wrote: 
>>>
>>> Hi, 
>>>
>>> We are using Jenkins to run unit tests. We have configured a job and 
>>> given the msbuild and batch file to run the scripts.
>>> We are successful in executing the scripts, the problem is we are not 
>>> able to view any test results. 
>>>
>>> We are not having Test Result link in the build history.
>>>
>>>
>>> 
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> We are using Jenkins2.6 version, also tried with different versions of 
>>>  Jenkins, yet we are facing the same issue.
>>>
>>> Added the following plugins:
>>> MSBuild
>>> MSTest
>>> MSTest Runner
>>> xvnc
>>> VSTest Runner
>>>
>>> Also, given the path for generating MSTest Results in the post build 
>>> actions.
>>>
>>> Would like to know if we are needed to add any plugin to get the link.
>>>
>>> Thanks.
>>>
>> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-use...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/e8d7f854-bd1d-400c-95bd-6585826de59e%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d4f540ef-e866-4506-9649-20401bedf1ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Load Script Approval from another Jenkins instance

2016-08-09 Thread 'Björn Pedersen' via Jenkins Users
Hi,

the approvals are stored in scriptApprovals.xml as hashes. I am not sure  
if this file is transferrable, but from looking  at the code 
(https://github.com/jenkinsci/script-security-plugin/blob/master/src/main/java/org/jenkinsci/plugins/scriptsecurity/scripts/ScriptApproval.java)
 
it seems so.

Björn

Am Montag, 8. August 2016 12:36:13 UTC+2 schrieb Sverre Moe:
>
> I have had a test instance of Jenkins running while programming my 
> workflow scripts. In this process I have had to go into In-process Script 
> Approval time and time again to add method calls to the approved list.
> Now I have the need to load these into Jenkins production instance and I 
> cannot run through the workflow scripts in the same way as I did in 
> testing. There are aprox 15-20 approved methods. Having to run a test 
> project 15-20 times to add methods to approved list is tedious.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/30886abc-dcb4-4e00-aff7-69313bc9906c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Jenkins 2.x Pipeline - parametrized build, parameters are not evaluated in Git

2016-08-09 Thread Ernestas Lukoševičius
Has anyone submitted a ticket we could all upvote and subscribe to?

On Wednesday, July 27, 2016 at 12:06:30 AM UTC+3, Francois Marot wrote:
>
> Has anyone any update or workaround on it ?
> I'd like to move the team to Jenkins 2 and use Jenkinsfile but not being 
> able to run a build against a specific branch or a specific commit is a 
> blocker in my case... I need to be able to build again old versions of my 
> software.
> I tried yesterday on up to date Jenkins and it is still KO
>
> Regards, Francois
>
> On Tuesday, May 10, 2016 at 12:05:50 PM UTC+2, thomas@teamaol.com 
> wrote:
>>
>> The multibranch is for sure something I will look into it but the 
>> mentioned behavior is
>> someting that has been working with Freestyle (as example). So yes  
>> agree ... sounds like a bug.
>>
>> On Sunday, May 1, 2016 at 2:19:17 PM UTC+2, Lionel Orellana wrote:
>>>
>>> Doesn't the Pipeline Multibranch Plugin 
>>>  
>>> do 
>>> what you want? Still sounds like a bug though.
>>>
>>> On Friday, 8 April 2016 17:06:59 UTC+10, thomas@teamaol.com wrote:

 I tested that with the first release candidate.
 *The issue is still there!*

 On Wednesday, April 6, 2016 at 8:10:09 AM UTC+2, thomas@teamaol.com 
 wrote:
>
> *Just to clarify*:
> The variable is required before using the content of the repository.
> That's true for the normal use of the Git plugin and also documented
> looking at the question icon (in both cases, normal and the pipeline 
> variant)
>
> The text:
>
>- *${ENV_VARIABLE}*
>It is also possible to use environment variables. In this case the 
>variables are evaluated and the result is used as described above.
>E.g. ${TREEISH}, refs/tags/${TAGNAME},...
>
>
> I think it is also logical. I would like to run a pipeline on "git 
> master" to deploy into production.
> But I also need to be able to run the pipeline for a feature branch 
> (which ends after the regression tests).
>
> Kind Regards,
> Thomas
>
>
> On Tuesday, April 5, 2016 at 1:36:48 PM UTC+2, Björn Pedersen wrote:
>>
>> Hi,
>>
>>  yes, I can confirm that behaviour. Taking a closer look at the log 
>> shows that any build wrappers that inject e.g. Environment vars are not 
>> running at this early stage. 
>> My guess is, that the assumption was that these wrappers are 
>> instantiated in the Jenkinsfile, so that they are not yet known. 
>>
>> Wether this is a good assumption in all use-cases is an open question.
>>
>> Björn
>>
>> Am Dienstag, 5. April 2016 09:47:50 UTC+2 schrieb 
>> thomas@teamaol.com:
>>>
>>> Hi,
>>>
>>> Mode: Pipeline script from SCM
>>>
>>>
>>> I tried to change working example to take a TAG as String parameter
>>> and to use *${TAG}* for the Branch using the Pipeline job in 
>>> Jenkins 2.x
>>> When trying this I get this:
>>>
>>>  > git rev-parse origin/${TAG}^{commit} # timeout=10
>>>  > git rev-parse ${TAG}^{commit} # timeout=10
>>> ERROR: Couldn't find any revision to build. Verify the repository and 
>>> branch configuration for this job.
>>>
>>>
>>> It looks to me that the variable TAG is not evaluated. Using "master" 
>>> instead
>>> of "${TAG}" works fine.
>>>
>>>
>>> Bug? I guess so.
>>>
>>>
>>> Kind Regards,
>>>
>>> Thomas
>>>
>>>
>>> PS: I tried to register at Jenkins JIRA but it's a nightmare. Either 
>>> the captcha popup appears
>>> after hours, or it timeouts or I get null pointer exception after 
>>> submitting or whatever.
>>>
>>> After 20 minutes I gave up. So don't ask me to write a ticket please ;)
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/605af70b-4a61-4b2b-ae5e-376d613bce4f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Planning parametrized jobs

2016-08-09 Thread Patricio Iglesias
By the way ill try that plugin.

ty Baptiste

El martes, 12 de julio de 2016, 9:11:16 (UTC+2), Patricio Iglesias escribió:
>
> Hello,
>
> i would like to know what is Jenkins behaviour launching planned 
> parametrized jobs.
>
> An example. I have a Job than need a parameter when you build it. When i 
> plan automated executions i only put the planned squedule like in cron (* * 
> * * *) but i dont put anything about that entry parameter.
>
> In this case, wich value of parameter should use jenkins? is there any way 
> to force this value to an especific one?
>
> Thank you very much in advance.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/47d04c60-bc54-4fd9-8dca-06babba8eecd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.