
The pypi_jobs template defines a -tarball job which is different than the -tarball job in python_jobs template. That's confusing, and not supported by the version of job-builder in development. This changes the name of that job, updates the zuul layout, and removes the "upload" from the sdist command in the tarball job, which wasn't working anyway (and isn't wanted). This alse enables the reddwarf jobs, which are configured in zuul. Also, there's a hackish change to test.sh and the test output to write out xml files in a way that's compatible with the version of job-builder in development, so that they may be directly compared. The new version will not implement that in quite such a hackish way. Change-Id: Ice3f03b41e44e2979942f516febd059f4ab4cefa Reviewed-on: https://review.openstack.org/11108 Reviewed-by: Monty Taylor <mordred@inaugust.com> Approved: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
27 lines
731 B
Bash
Executable File
27 lines
731 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# A simple script to verify that the XML output is unaltered after a change.
|
|
# Before you start work, run "./test.sh save".
|
|
# As you test your change, run "./test.sh" to see differences in XML output.
|
|
|
|
mkdir -p /tmp/jenkins_jobs_test/saved
|
|
mkdir -p /tmp/jenkins_jobs_test/test
|
|
|
|
if [ "$1" == "save" ]
|
|
then
|
|
for x in `find projects/ -name *.yml`
|
|
do
|
|
echo $x
|
|
BASENAME=`basename $x`
|
|
python jenkins_jobs.py test $x #> /tmp/jenkins_jobs_test/saved/$BASENAME.xml
|
|
done
|
|
else
|
|
for x in `find projects/ -name *.yml`
|
|
do
|
|
echo $x
|
|
BASENAME=`basename $x`
|
|
python jenkins_jobs.py test $x > /tmp/jenkins_jobs_test/test/$BASENAME.xml
|
|
done
|
|
diff -r /tmp/jenkins_jobs_test/saved /tmp/jenkins_jobs_test/test
|
|
fi
|