Job for update jenkins jobs and simple tox config

Change-Id: Ia7ed0ecd50393cb601803ba9c52859f43066f7f7
This commit is contained in:
Artur Zarzycki 2016-05-11 12:04:15 +02:00
parent afdddcd20c
commit 441e0a59d9
6 changed files with 38 additions and 19 deletions

View File

@ -2,3 +2,18 @@
echo "This is job for update jenkins jobs after merge"
git clone ssh://nextgen-ci@review.fuel-infra.org:29418/$ZUUL_PROJECT .
cat > "jenkins_jobs.ini" << EOF
[jenkins]
user=${JJB_USER}
password=${JJB_PASS}
url=https://jenkins.ng.mirantis.net/
query_plugins_info=False
[job_builder]
ignore_cache=True
recursive=True
EOF
jenkins-jobs --conf jenkins_jobs.ini" update jenkins/jobs

View File

@ -507,18 +507,3 @@
- nextgen-ci-jenkins
triggers:
- zuul
- job:
name: nextgen-project-config
description: |
Some nextgen project config gate test job
node: standard
builders:
- get-from-zuul
- shell: !include-raw builders/nextgen-project-config-gate.sh
concurrent: true
wrappers:
- ng-cleanup
- nextgen-ci-jenkins
triggers:
- zuul

View File

@ -4,12 +4,13 @@
Update jenkins jobs after merge
node: standard
builders:
- get-from-zuul
- shell: !include-raw builders/update-jenkins-post-job.sh
concurrent: true
wrappers:
- ng-cleanup
- nextgen-ci-jenkins
- inject-passwords:
global: true
triggers:
- zuul

1
requirements.txt Normal file
View File

@ -0,0 +1 @@
jenkins-job-builder==1.3.0

18
tox.ini Normal file
View File

@ -0,0 +1,18 @@
[tox]
minversion = 1.6
skipsdist = True
envlist = bashate
[testenv:bashate]
deps = bashate>=0.2
whitelist_externals = bash
commands = bash -c "find {toxinidir} -type f -name '*.sh' -not -path '*/.tox/*' -print0 | xargs -0 bashate -v"
[testenv]
basepython = python2
deps = -r{toxinidir}/requirements.txt
usedevelop = False
commands =
jenkins-jobs --conf conf/jenkins_job.ini.example test jenkins/jobs -o {toxinidir}/output/{envname}
[testenv:nextgen-ci]

View File

@ -303,7 +303,6 @@ projects:
- name: nextgen/project-config
check:
- verify-tox-bashate
- verify-jjb-project-config
gate:
- nextgen-project-config
post:
- update-jenkins-jobs