Automatic job creation on jenkins using json -


i want new jenkins created when execute particular job on jenkins. using json string so

following used

json="{\"parameter\": [{\"name\": \"task\", \"value\": \"$task\"}], \"\": \"\"}" url=http://xx.xx.xx.xx:8080/job/$task/build curl -x post $url -d token=zorn --data-urlencode json="$json" 

but when execute following error:

+ json='{"parameter": [{"name": "task", "value": "test123"}], "": ""}' + url=http://xx.xx.xx.xx:8080/job/test123/build + curl -x post http://xx.xx.xx.xx:8080/job/soma/build -d token=zorn --data-urlencode 'json={"parameter": [{"name": "task", "value": "test123"}], "": ""}'    % total    % received % xferd  average speed   time    time     time  current                              dload  upload   total   spent    left  speed  0     0    0     0    0   138      0   286k --:--:-- --:--:-- --:--:--  286k 200   263  131   263    0   138   158k  85132 --:--:-- --:--:-- --:--:--  122k <html><head><title>error 404</title></head><body bgcolor="#ffffff"><h1>status code:   404</h1>exception: <br>stacktrace: <pre>(none) </pre><br><hr size="1" width="90%"><i>generated winstone servlet engine v0.9.10 @ mon aug 26 12:36:10 ist 2013</i></body></html>notifying upstream projects of job completion finished: success 

please guide me in going wrong. new job test123 not created.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -