i connected jenkins visualsvn server , can make builds clicking on build-button in jenkins. want trigger build using post-commit. use tortoisesvn + jenkins + visualsvn server
i tried 2 ways, none of them worked me.
first read article page, , used author code:
c:\curl\curl http://admin:123@localhost:8080/jenkins/job/cannon%20attack%20-%20dom%20millar/build?token=myauth
i tried without token , both ways without login-information
c:\curl\curl http://admin:123@localhost:8080/jenkins/job/cannon%20attack%20-%20dom%20millar/build?delay=0sec
the second code tried page:
c:\repositories\nunittests\jenkinsnotifier.rb cannon%20attack%20-%20dom%20millar/
and jenkinsnotifier.rb contains code:
# push notice hudson server initiate build. # ensure required libs present require "net/http" require "uri" # project name hudsonproject = argv[0] # create uri , issue request uri = uri.parse("http://localhost:8080/jenkins/job/" + cannon%20attack%20-%20dom%20millar + "/build?delay=0sec") net::http::get_print uri
2.way: dont error, build doesnt start.
i fixed it. syntax problem. curl doenst accept "%20". deleted of them , deleted spaces in project name in jenkins.
"c:\curl\curl" http://localhost:8080/job/cannonattack-dommillar/build?token=myauth pause
Comments
Post a Comment