gvalkov / jenkins-autojobs

Automatically create Jenkins jobs from template jobs and branches in a SCM repository
http://jenkins-autojobs.rtfd.org
Other
49 stars 39 forks source link

Clean all autojobs on git timeout #10

Closed sja closed 10 years ago

sja commented 10 years ago

When the git server times out, I get the following:

$ jenkins-makejobs-git -n jenkins-autojobs/git-config.yaml 
loading config from "/home/jenkins/jenkins-plugins/jenkins-autojobs/git-config.yaml"
ssh: connect to host my.git-server.com port 22: Connection timed out
fatal: The remote end hung up unexpectedly

cleaning up old jobs:

And then all the created jobs before are listed. Thats bad!

gvalkov commented 10 years ago

Fixed in 02b41697bf4ec06f2f61634d9acc9da3804f157d. This was a bad one indeed. Thanks for catching it and apologies if it caused you any trouble.

gvalkov commented 10 years ago

Jenkins-autojobs 0.12.0 is on pypi with this fix.