Sync files from openstack-manuals with other repos

Rename propose_requirements_update.sh to propose_update.sh and
adjust it so that it handles syncing of files for openstack-manual
as well.

The files to be copied are right now the glossary files and they are
copied to operations-guide and security-doc. The copying of the glossary
allows to use openstack-manuals as master reference and also sharing of
translations.

Adjust jjb config of propose_requirements job.
Add new proposal job for openstack-manuals and run it as post job.

implements bp common-glossary-setup

Change-Id: I3f2d6238c17f45dd149ec282270227a14c7dd1b1
This commit is contained in:
Andreas Jaeger 2014-08-01 19:12:43 +02:00
parent 05dd5c9e92
commit 795de6f6f0
4 changed files with 33 additions and 4 deletions
modules/openstack_project/files
jenkins_job_builder/config
slave_scripts
zuul

@ -1,3 +1,17 @@
- job:
name: propose-openstack-manuals-updates
node: proposal
builders:
- revoke-sudo
- link-logs
- net-info
- gerrit-git-prep
- shell: /usr/local/jenkins/slave_scripts/propose_update.sh openstack-manuals
publishers:
- console-log
- job-template:
name: 'gate-{name}-tox-doc-publish-{envlist}'

@ -41,7 +41,7 @@
- link-logs
- net-info
- gerrit-git-prep
- shell: /usr/local/jenkins/slave_scripts/propose_requirements_update.sh
- shell: /usr/local/jenkins/slave_scripts/propose_update.sh requirements
publishers:
- console-log

@ -12,8 +12,18 @@
# License for the specific language governing permissions and limitations
# under the License.
INITIAL_COMMIT_MSG="Updated from global requirements"
TOPIC="openstack/requirements"
OWN_PROJECT=$1
if [ -z "$OWN_PROJECT" ] ; then
echo "usage: $0 project"
exit 1
fi
if [ "$OWN_PROJECT" == "requirements" ] ; then
INITIAL_COMMIT_MSG="Updated from global requirements"
TOPIC="openstack/requirements"
else
INITIAL_COMMIT_MSG="Updated from openstack-manuals"
TOPIC="openstack/openstack-manuals"
fi
USERNAME="proposal-bot"
BRANCH=$ZUUL_REF
ALL_SUCCESS=0
@ -80,7 +90,11 @@ EOF
continue
fi
python update.py $PROJECT_DIR
if [ "$OWN_PROJECT" == "requirements" ] ; then
python update.py $PROJECT_DIR
else
bash -xe tools/sync-projects.sh $PROJECT_DIR
fi
pushd $PROJECT_DIR
if ! git diff --exit-code HEAD ; then

@ -2457,6 +2457,7 @@ projects:
- name: openstack-doc-translation
post:
- openstack-manuals-tox-doc-publishdocs
- propose-openstack-manuals-updates
- name: openstack/operations-guide
template: