Re: parameterized build and views

2012-05-15 Thread Jacob Robertson
If I am understanding your request, please take a look at this wiki
page which explains how to create a smart view that only shows
information about specific types of builds for the jobs shown.

https://wiki.jenkins-ci.org/display/JENKINS/Build+Filter+%28Wrapper%29+Column


On Tue, May 15, 2012 at 7:13 AM, marathiboy ligade_shail...@bah.com wrote:
 Hello,

 Sorry if this duplicate, I am having issues posting to this group..:-(

 I have a job with a scm branch parameter which can I have 2 values (choice).
 How can I setup 2 separate views which will default the same job but with
 different parameters? Is that possible? I played with view filter but it
 just list the job, I am not able to set different parameter using view
 filter… any suggestions?



 Thanks



 S

 --
 View this message in context: 
 http://jenkins.361315.n4.nabble.com/parameterized-build-and-views-tp4628597.html
 Sent from the Jenkins users mailing list archive at Nabble.com.


RE: parameterized build and views

2012-05-15 Thread Ligade, Shailesh [USA]
Thanks for reply,

I guess I was not aware of the column showing is affected by filter used. 
However, my question is slightly different. Let me try to explain it..

I have a job that uses maven profile to build for test and dev environments. I 
have parameterized this job with profile parameter. To do this I have setup a 
choice parameter with 2 choices, with default as dev. Everything is working 
great. 

Now I want 2 different views of the same job (one for test and other for dev). 
When I click on 'build' button from the test view, it should take parameter 
'test' even though default is dev and do a build for test environment. 
Similarly from the dev view, it should do build for 'dev' environment. So what 
I am looking for is changing parameter value based on which view you are 
building from.

To somewhat solve this, I created a section view with text section, and there I 
list urls (as href) so under dev view I have a url my job 
url/buildWithParameters?profile=dev and for test view, I have url my job 
url/buildWithParameters?profile= test. But with this hack I don't have any 
useful columns (just bunch of hrefs)..so not terribly useful :-(

Hope I explained it right..

S

-Original Message-
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Jacob Robertson
Sent: Tuesday, May 15, 2012 8:28 AM
To: jenkinsci-users@googlegroups.com
Subject: Re: parameterized build and views

If I am understanding your request, please take a look at this wiki page which 
explains how to create a smart view that only shows information about specific 
types of builds for the jobs shown.

https://wiki.jenkins-ci.org/display/JENKINS/Build+Filter+%28Wrapper%29+Column


On Tue, May 15, 2012 at 7:13 AM, marathiboy ligade_shail...@bah.com wrote:
 Hello,

 Sorry if this duplicate, I am having issues posting to this group..:-(

 I have a job with a scm branch parameter which can I have 2 values (choice).
 How can I setup 2 separate views which will default the same job but 
 with different parameters? Is that possible? I played with view filter 
 but it just list the job, I am not able to set different parameter 
 using view filter... any suggestions?



 Thanks



 S

 --
 View this message in context: 
 http://jenkins.361315.n4.nabble.com/parameterized-build-and-views-tp46
 28597.html Sent from the Jenkins users mailing list archive at 
 Nabble.com.