Powershell http get request from jenkins -
please tell me - how run jenkins (shell or windows powershell) powershell commando. command line following command works.
powershell -command "[net.webrequest]::create(\"http://rackham:8080/job/ms-enu-deploy/buildwithparameters?artifact_version=1.3\").getresponse()"
this command run jenkins. build success, request in post build section not fulfilled.
powershell -command "[net.webrequest]::create('http://rackham:8080/job/ms-enu-deploy/buildwithparameters?artifact_version=1.3\').getresponse()"
can me?
well, looks internal, can't hit site referring. however, use powershell , use invoke-webrequest. use grab data websites , other various things. try , let me know if there more need.
$request = invoke-webrequest "http://stackoverflow.com/questions/31568695/powershell-http-get-request-from-jenkins" $request.content
Comments
Post a Comment