#!/bin/sh

#update jobs
for job in `ls -1 forensicator-fate/jenkins/jobs`; do echo Updating job $job; java -jar /run/jenkins/war/WEB-INF/jenkins-cli.jar -s http://localhost:8080 create-job $job <${job}.xml; done

#!/bin/sh

#update jobs
cd forensicator-fate/jenkins/jobs
for job in `ls -1`; do echo Updating job $job; java -jar /run/jenkins/war/WEB-INF/jenkins-cli.jar -s http://localhost:8080 create-job $job <${job}.xml; done

Change into the jobs directory before attempting to reload the jobs, otherwise the filenames and jobnames don't match.
Change into the jobs directory before attempting to reload the jobs,
otherwise the filenames and jobnames don't match.
