When directly run with parameters, select organization and job and run with selected quorum setting.
Also when run without parameters, the workspace is updated from Git. The job will be run periodically without parameters.
NOTE: do not set this job to clear its workspace, as it creates no workspace artifacts, and uses the config in the repo to set its parameter settings.
TODO: in process......
falsefalseGLOBALDISABLEDfalsefalsefalse0edsmiley@yahoo-inc.comtruetruetruetruetruetruetruefalsefalsefalsefalseORG_JOB_QUORUMSelect Chef Organization, then Chef Push Job and Quorum.falsefalse5PT_MULTI_LEVEL_SINGLE_SELECTOrganization,Job,Quorum/home/babylon/jenkins-slave/jenkins-slave/workspace/chef-push-job/config/extended-choice-config.txt,1job-infotruefalselast-savedtruefalsetimetruefalseAmerica/Los_Angelesfalseusertruefalsedisplay-nametruefalseEd Smileyfull-nametruefalseEd Smiley2** git repo suppressed for security reasons***** git credential suppressed for security reasons***** git repo branch suppressed for security reasons***false*** suppressed for security reasons ***falsefalsefalsefalse(System)false# debug
cat /home/babylon/jenkins-slave/jenkins-slave/workspace/chef-push-job/config/extended-choice-config.txt
#
# if this parameter is set, we are explicitly running a specific push job
#
if [ -n "$ORG_JOB_QUORUM" ]; then
echo "Running with settings: ORG_JOB_QUORUM=$ORG_JOB_QUORUM"
#
# we us this to set the organization on the fly
#
ORGANIZATION=`echo $ORG_JOB_QUORUM | awk -F: '{print $1}'`
DEFAULT_ORGANIZATION="test-org"
sed -e s/$DEFAULT_ORGANIZATION/$ORGANIZATION/g .chef/knife.rb > .chef/knife.rb.new
mv .chef/knife.rb.new .chef/knife.rb
#
# make knife trust the server's certificates.
#
knife ssl fetch
#
# get the nodes and settings for the organization push job and launch
#
echo "Running: 'ruby scripts/organization-job-nodes.rb $ORG_JOB_QUORUM'"
#ruby scripts/organization-job-nodes.rb $ORG_JOB_QUORUM
else
#
# if unset, this will merely be a periodic refresh run as a scheduled task
#
echo "ORG_JOB_QUORUM parameter not set. Refreshing workspace with latest from Git.";
fi
echo "Done."
**suppressed for security reasons***