For my build (on a Linux host), I do something like this (as a build step in Jenkins) to execute a build script out of the freshly-checked-out workspace:
Execute shell
Command:
sh -x $WORKSPACE/build/myproject.build
I presume it would work similar on Windows, except of course you would use \ rather than / and you're using python rather than sh to execute your script.
I had the same exact error very recently. I realized after setting security to false in config.xml and manually setting up ldap on the new host that I forgot to import the certificate to the java keystore as we are using ldaps. Here are the steps I took to resolve the problem. For reference, I'm using java-1.7.0-openjdk-1.7.0.65, jenkins v1.568 on Centos 6.5 fully updated.
Stop Jenkins
service jenkins stop
Sync Jenkins home dir (used -I flag to overwrite existing files):
rsync -avI user@old_host:/var/lib/jenkins/* /var/lib/jenkins/
Backup cacerts on the new host:
cp /etc/pki/java/cacerts /some/backup/dir
Copy cacerts from old host to new (or import via keytool if you have other certs on that new host you need to keep):
scp user@old_host:/etc/pki/java/cacerts /etc/pki/java/cacerts
(import method: keytool -import -alias "some-name-for-cert" -keystore cacerts -trustcacerts -file "/path/to/cert.crt")
Start Jenkins
service jenkins start
Unfortunately I don't have enough reputation to comment and recommend importing a cert so please don't be harsh if this doesn't fix it. I signed up here when I came across your error. Hope it helps!
Best Answer
Hit
/reload
URL on your Jenkins (it will ask you for login/pass naturally). This reads the configuration from XML files.