I am trying new string name String parameter Name : myVaraiable Default Value: 10
echo $myVaraiable echo "$myVaraiable" RETURNS Blank line. On Tue, Mar 6, 2012 at 9:51 AM, Andrew Melo <andrew.m...@gmail.com> wrote: > > > On Tue, Mar 6, 2012 at 11:49 AM, Jatin D Patel <depo.ja...@gmail.com>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 <andrew.m...@gmail.com>wrote: >> >>> >>> >>> On Tue, Mar 6, 2012 at 11:31 AM, Jatin D Patel <depo.ja...@gmail.com>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 <andrew.m...@gmail.com>wrote: >>>> >>>>> Hi there, >>>>> >>>>> How are you submitting the job? >>>>> >>>>> -andrew >>>>> >>>>> >>>>> On Mon, Mar 5, 2012 at 8:15 PM, Jatin D Patel <depo.ja...@gmail.com>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.