Andrew, I wanted to execute list of linux commands, while pointing to linux serv.
So you mean to say that, if i run commands on a slave, i will be able to use parametrized variables ? Do you know any link that will help? Thanks, Jatin. On Tue, Mar 6, 2012 at 10:38 AM, Andrew Melo <[email protected]> wrote: > > > On Tue, Mar 6, 2012 at 12:27 PM, Jatin D Patel <[email protected]>wrote: > >> Hi all, >> >> Hope this attached document with screenshot will be more clear. >> I am not able to send parametrized values to build. >> >> Andrew, >> Are you able to echo out parameterized value in build? >> If yes, Can you please reply back your output. >> >> Thanks, >> ~Jatin >> >> ways to reproduce steps >> >> -------------------------------------------------------------------------------------------------------------- >> step 1: >> Build a free-style software project >> >> step 2: >> IN configuration page, I have selected the option >> "This build is parametreized" >> >> Step 3: >> Provide String parameter >> >> Name : VERSION >> default value : RELEASE >> dESCRIPTION : abcd >> >> Step 4: >> Under the build section >> SSH Site : My personal linux server >> Command: : echo JAVA_HOME >> WORKS FINE >> echo $VERSION >> echo "$version" >> RETURNS Blank line. >> >> >> Step 5 >> Save the oncfirations >> >> Step 6 >> Go to home page of job now. >> >> Step 7 >> For triggering build, >> >> Click on "Build Now" >> (Located on Top Left) >> >> Step 8. >> We gets a screen to provide the parametreized values >> I provide some default value. >> >> Step 9 >> Click on "Build" >> This step helps me trigger Build. >> > > Ah, I guess that variable doesn't get passed through the SSH session. Why > are you using the SSH command and not running the commands on a slave? > > > >> >> ------------------------------------------------------------------------------------------------------------- >> >> >> On Tue, Mar 6, 2012 at 10:06 AM, Andrew Melo <[email protected]>wrote: >> >>> >>> >>> On Tue, Mar 6, 2012 at 12:02 PM, Jatin D Patel <[email protected]>wrote: >>> >>>> I am trying new string name >>>> >>>> String parameter >>>> Name : myVaraiable >>>> Default Value: 10 >>>> >>>> echo $myVaraiable >>>> echo "$myVaraiable" >>>> RETURNS Blank line. >>>> >>> >>> This is in a "execute shell" build step? Like this? >>> >>> http://cl.ly/2b382H2731262r2J0f08 >>> >>> >>>> >>>> >>>> >>>> On Tue, Mar 6, 2012 at 9:51 AM, Andrew Melo <[email protected]>wrote: >>>> >>>>> >>>>> >>>>> On Tue, Mar 6, 2012 at 11:49 AM, Jatin D Patel >>>>> <[email protected]>wrote: >>>>> >>>>>> Andrew, >>>>>> >>>>>> Thanks for quick reply. I have attached the following steps. >>>>>> I a newbie to jenkins. I might have misunderstood the documentation. >>>>>> >>>>>> Please correct me if i am wrong? >>>>>> >>>>>> -------------------------------------------------------------------------------------- >>>>>> >>>>>> Step 5 >>>>>> Save the oncfirations >>>>>> >>>>>> Step 6 >>>>>> Go to home page of job now. >>>>>> >>>>>> Step 7 >>>>>> For triggering build, >>>>>> >>>>>> Click on "Build Now" >>>>>> (Located on Top Left) >>>>>> >>>>>> Step 8. >>>>>> We gets a screen to provide the parametreized values >>>>>> I provide some default value. >>>>>> >>>>>> Step 9 >>>>>> Click on "Build" >>>>>> This step helps me trigger Build. >>>>>> >>>>> >>>>> Hm. Try using a different name (not $VERSION) for your variable. Maybe >>>>> it's colliding? >>>>> >>>>> >>>>> >>>>>> >>>>>> Thanks, >>>>>> Jatin >>>>>> >>>>>> >>>>>> On Tue, Mar 6, 2012 at 9:33 AM, Andrew Melo <[email protected]>wrote: >>>>>> >>>>>>> >>>>>>> >>>>>>> On Tue, Mar 6, 2012 at 11:31 AM, Jatin D Patel <[email protected] >>>>>>> > wrote: >>>>>>> >>>>>>>> This is the steps which i have followed. >>>>>>>> >>>>>>>> >>>>>>>> -------------------------------------------------------------------------------------------------------------------- >>>>>>>> >>>>>>>> step 1: >>>>>>>> Build a free-style software project >>>>>>>> >>>>>>>> step 2: >>>>>>>> IN configuration page, I have selected the option >>>>>>>> "This build is parametreized" >>>>>>>> >>>>>>>> Step 3: >>>>>>>> Provide String parameter >>>>>>>> >>>>>>>> Name : VERSION >>>>>>>> default value : RELEASE >>>>>>>> dESCRIPTION : abcd >>>>>>>> >>>>>>>> Step 4: >>>>>>>> Under the build section >>>>>>>> SSH Site : My personal linux server >>>>>>>> Command: : echo JAVA_HOME >>>>>>>> WORKS FINE >>>>>>>> echo $VERSION >>>>>>>> echo "$version" >>>>>>>> RETURNS Blank line. >>>>>>>> >>>>>>>> -------------------------------------------------------------------------------------------------------------------- >>>>>>>> >>>>>>>> >>>>>>>> Hope that i was clear ? >>>>>>>> >>>>>>> >>>>>>> Right, but how are you actually triggering the builds? The webpage? >>>>>>> The CLI? >>>>>>> >>>>>>> >>>>>>>> Please help. >>>>>>>> >>>>>>>> On Mon, Mar 5, 2012 at 6:30 PM, Andrew Melo >>>>>>>> <[email protected]>wrote: >>>>>>>> >>>>>>>>> Hi there, >>>>>>>>> >>>>>>>>> How are you submitting the job? >>>>>>>>> >>>>>>>>> -andrew >>>>>>>>> >>>>>>>>> >>>>>>>>> On Mon, Mar 5, 2012 at 8:15 PM, Jatin D Patel < >>>>>>>>> [email protected]> wrote: >>>>>>>>> >>>>>>>>>> Hi all, >>>>>>>>>> >>>>>>>>>> I have set up a string value >>>>>>>>>> Name : VERSION >>>>>>>>>> Default Value : 17 >>>>>>>>>> >>>>>>>>>> Ref: http://wiki.hudson-ci.org/display/HUDSON/Parameterized+Build >>>>>>>>>> >>>>>>>>>> When i try to access, the version value, i get a blank response >>>>>>>>>> >>>>>>>>>> echo $JAVA_HOME >>>>>>>>>> returns Java Home location >>>>>>>>>> >>>>>>>>>> *echo $VERSION* >>>>>>>>>> *returns a blank line* >>>>>>>>>> * >>>>>>>>>> * >>>>>>>>>> *echo "$VERSION"* >>>>>>>>>> *also returns a blank line* >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> How can i display the value 17 , while *executing shell script >>>>>>>>>> on remot ehost using ssh?* >>>>>>>>>> * >>>>>>>>>> * >>>>>>>>>> Please help. >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Thanks, >>>>>>>>>> JD Patel >>>>>>>>>> You Got To Think HIGH to RISE. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> -- >>>>>>>>> Andrew Melo >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Thanks, >>>>>>>> Jatin D N Patel >>>>>>>> >>>>>>>> You Got To Think HIGH to RISE. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> -- >>>>>>> Andrew Melo >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Thanks, >>>>>> Jatin D N Patel >>>>>> You Got To Think HIGH to RISE. >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> -- >>>>> Andrew Melo >>>>> >>>>> >>>> >>>> >>>> -- >>>> Thanks, >>>> Jatin D N Patel >>>> You Got To Think HIGH to RISE. >>>> >>>> >>>> >>> >>> >>> -- >>> -- >>> Andrew Melo >>> >>> >> >> >> -- >> Thanks, >> Jatin D N Patel >> You Got To Think HIGH to RISE. >> >> >> > > > -- > -- > Andrew Melo > > -- Thanks, Jatin D N Patel You Got To Think HIGH to RISE.
