Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstrap #1

Merged
merged 4 commits into from
Jun 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
34 changes: 34 additions & 0 deletions .coafile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[Documentation]
bears = WriteGoodLintBear
files = *.md
allow_so_beginning = False
allow_there_is = False
allow_cliche_phrases = False

[GitCommit]
bears = GitCommitBear
ignore_length_regex = Signed-off-by,
Also-by,
Co-authored-by,
http://,
https://

[JSON]
bears = JSONFormatBear
files = packer/**.json
indent_size = 2

[ShellCheck]
bears = ShellCheckBear,
SpaceConsistencyBear
files = jjb/**.sh,
packer/**.sh
shell = bash
indent_size = 4
use_spaces = yeah

[YAML]
bears = YAMLLintBear
files = jjb/**/*.yaml
document_start = True
yamllint_config = .yamllint.conf
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.tox/
archives/
jenkins.ini

# Packer
.galaxy/
*.retry
cloud-env.json
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[submodule "packer/common-packer"]
path = packer/common-packer
url = https://github.com/lfit/releng-common-packer.git
[submodule "jjb/global-jjb"]
path = jjb/global-jjb
url = https://github.com/lfit/releng-global-jjb
7 changes: 7 additions & 0 deletions .yamllint.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
extends: default

rules:
empty-lines:
max-end: 1
line-length:
max: 120
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# ci-management
Jenkins job configuration

This repo contains configuration files for Jenkins jobs for the Motion Picture Software Foundation project.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
IMAGE_NAME=ZZCI - CentOS 7 - builder - 20180604-1653
HARDWARE_ID=v1-standard-1
22 changes: 22 additions & 0 deletions jenkins-config/clouds/openstack/cattle/cloud.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Cloud Configuration
CLOUD_CREDENTIAL_ID=os-cloud
CLOUD_URL=https://auth.vexxhost.net/v3/
CLOUD_IGNORE_SSL=false
CLOUD_ZONE=ca-ymq-1

# Default Template Configuration
IMAGE_NAME=ZZCI - CentOS 7 - builder - 20180604-1653
HARDWARE_ID=v1-standard-1
NETWORK_ID=721d9298-2678-494b-9414-43711b340049
USER_DATA_ID=jenkins-init-script
INSTANCE_CAP=10
SANDBOX_CAP=4
FLOATING_IP_POOL=
SECURITY_GROUPS=default
AVAILABILITY_ZONE=ca-ymq-2
STARTUP_TIMEOUT=600000
KEY_PAIR_NAME=jenkins
NUM_EXECUTORS=1
JVM_OPTIONS=
FS_ROOT=/w
RETENTION_TIME=0
10 changes: 10 additions & 0 deletions jjb/ci-management/ci-management.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

- project:
name: ci-jobs

jobs:
- '{project-name}-github-ci-jobs'

project: ci-management
project-name: ci-management
build-node: centos7-builder-2c-1g
15 changes: 15 additions & 0 deletions jjb/defaults.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
- defaults:
name: global

git-url: https://github.com
git-clone-url: 'git@github.com:'
github-org: MotionPictureSoftwareFoundation
github_pr_whitelist:
- tykeal
- zxiiro
github_pr_admin_list:
- tykeal
- zxiiro

jenkins-ssh-credential: jenkins
lftools-version: '<1.0.0'
1 change: 1 addition & 0 deletions jjb/global-jjb
Submodule global-jjb added at d9aedd
1 change: 1 addition & 0 deletions packer/common-packer
Submodule common-packer added at f926e4
2 changes: 2 additions & 0 deletions packer/provision/local-builder.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
- import_playbook: ../common-packer/provision/baseline.yaml
1 change: 1 addition & 0 deletions packer/templates/builder.json
22 changes: 22 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[tox]
minversion = 1.6
envlist = coala,jjb
skipsdist = true

[testenv:coala]
basepython = python3
deps =
coala==0.11
coala-bears==0.11
nodeenv~=1.3.0
commands =
nodeenv -p
npm install --global write-good
python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger
coala --non-interactive

[testenv:jjb]
deps =
jenkins-job-builder==2.0.5
commands =
jenkins-jobs -l DEBUG test --recursive -o {toxinidir}/archives/job-configs {toxinidir}/jjb