Merge "Translation update jobs now supports any org"

This commit is contained in:
Jenkins 2013-08-30 16:49:10 +00:00 committed by Gerrit Code Review
commit df574c3503
2 changed files with 4 additions and 3 deletions

View File

@ -12,7 +12,8 @@
# License for the specific language governing permissions and limitations
# under the License.
PROJECT=$1
ORG=$1
PROJECT=$2
COMMIT_MSG="Imported Translations from Transifex"
git config user.name "OpenStack Jenkins"
@ -23,7 +24,7 @@ git review -s
# See if there is an open change in the transifex/translations topic
# If so, get the change id for the existing change for use in the commit msg.
change_info=`ssh -p 29418 review.openstack.org gerrit query --current-patch-set status:open project:openstack/$PROJECT topic:transifex/translations owner:jenkins`
change_info=`ssh -p 29418 review.openstack.org gerrit query --current-patch-set status:open project:$ORG/$PROJECT topic:transifex/translations owner:jenkins`
previous=`echo "$change_info" | grep "^ number:" | awk '{print $2}'`
if [ "x${previous}" != "x" ] ; then
change_id=`echo "$change_info" | grep "^change" | awk '{print $2}'`

View File

@ -20,7 +20,7 @@
builders:
- shell: |
#!/bin/bash -xe
/usr/local/jenkins/slave_scripts/propose_translation_update.sh {name}
/usr/local/jenkins/slave_scripts/propose_translation_update.sh {github-org} {name}
publishers:
- console-log-periodic