ps.com *On
> Behalf Of *Siddhesh Malpani
> *Sent:* March 12, 2020 9:42 AM
> *To:* Jenkins Users
> *Subject:* Re: passing variable to bash script in a jenkins pipeline job
>
>
>
> Nabil,
>
>
>
> You may try this in your shell script:
>
>
>
> #!/bi
='linux-ubuntu-14.04-x86_64-gcc4.8.4'
sh(script: "./opt/setup.sh \”${lib_arch}\”");
That should normally work just fine.
From: jenkinsci-users@googlegroups.com On
Behalf Of Siddhesh Malpani
Sent: March 12, 2020 9:42 AM
To: Jenkins Users
Subject: Re: passing variable to bash
Nabil,
You may try this in your shell script:
#!/bin/bash
export ARCH=$1
echo "architecture = " $ARCH
Braces around the 'ARCH' variable is not required.
Although it's too late to answer, it might help someone else.
On Sunday, 30 October 2016 02:42:18 UTC+5:30, Nabil Ghodbane wrote:
>
> dea
> On 30.10.2016, at 18:53, Nabil Ghodbane wrote:
>
> Well, it runs well on a local command line... On the other hand, it seems
> there is a serious issue passing parameters to bash scripts from sh pipeline
> command
I tried both, and you're right -- it does work in a local shell.
However, it
Weird, what does the following print?
def lib_arch='linux-ubuntu-14.04-x86_64-gcc4.8.4'
echo lib_archecho ". /opt/setup.sh ${lib_arch}"
echo ". /opt/setup.sh $lib_arch"
2016-10-30 18:53 GMT+01:00 Nabil Ghodbane :
> Hi,
> thanks for your "feedback'. Well, it runs well on a local command line...
Hi,
thanks for your "feedback'. Well, it runs well on a local command line...
On the other hand, it seems there is a serious issue passing parameters to
bash scripts from sh pipeline command
On Sunday, October 30, 2016 at 2:17:06 AM UTC+2, Daniel Beck wrote:
>
>
> > On 29.10.2016, at 23:12, Nabi
> On 29.10.2016, at 23:12, Nabil Ghodbane wrote:
>
> So how can I pass a parameter to my bash script in a Jenkins pipeline script?
You will find that this also doesn't work when you run it from a local command
line (a basic first troubleshooting step), so it is entirely unrelated to
Jenkins
dear experts,
I have a Jenkins pipeline job in which I configure my environment with a
bash script named setup.sh which looks like:
#!/bin/bash
export ARCH=$1
echo "architecture = " ${ARCH}
In the Jenkins pipeline script, Icall the setup.sh script with:
def lib_arch='linux-ubuntu-14.04-x