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.
