Hi Phani, Could you please provide the error log if you can? thanks, Ramesh
On Tue, Jan 14, 2020 at 10:13 AM phanindra m <[email protected]> wrote: > Hi, > > I'm Trying to Run Rest API in Jenkins Job, but facing few issues. > > below command will fetch the session id of an application and stores it in > a var variable. this command is working fine in GIT Bash, but when i trying > to run this command in Execute Shell option in jenkins it is not working. > So can any one help me on this. > > var=$(curl --silent 'http://URL/Login?sUserId=UserID&sPassword=password' > | sed -nr 's/.*>(.*)<.*/\1/p') > echo $var > > Thanks In Advance, > > Phani > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/a1358aa9-d81f-44e4-a75c-b6fdf479c3f0%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/a1358aa9-d81f-44e4-a75c-b6fdf479c3f0%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CALEm6wSDPeB5WsAtexme5tKSZwoNVUUege9OcYOvSR66pc3F3Q%40mail.gmail.com.
