Skip to content

Commit

Permalink
Base JJB configuration
Browse files Browse the repository at this point in the history
Setup the base JJB configuration for EdgeX

Signed-off-by: Andrew Grimberg <[email protected]>
  • Loading branch information
tykeal committed May 24, 2017
1 parent 9d70850 commit f440b93
Show file tree
Hide file tree
Showing 10 changed files with 158 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .coafile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[GitCommit]
bears = GitCommitBear
ignore_length_regex = Signed-off-by,
Also-by,
Co-authored-by,
http://,
https://

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

[YAML]
bears = YAMLLintBear
files = jjb/**/*.yaml,openstack-hot/**/*.yaml
document_start = True
yamllint_config = yamllint.conf

[ShellCheck]
bears = ShellCheckBear,SpaceConsistencyBear
files = jenkins-scripts/**/*.sh,
jjb/**/*.sh,
scripts/**/*.sh
ignore = jenkins-scripts/*-local-env.sh,
jjb/global-jjb/shell/*.sh,
shell = bash
indent_size = 4
use_spaces = yeah
25 changes: 25 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space

[*.json]
indent_size = 2

[*.rst]
indent_size = 4

[*.markdown]
indent_size = 4
max_line_length = 80

[*.sh]
indent_size = 4
max_line_length = 80

[*.yaml]
indent_size = 4

26 changes: 26 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Ignore Vim temporary files
.*.sw?

# Ignore changes to the JJB Configuration File
jenkins.ini

# Ignore Sandbox temporary files
jjb/*/releng-*.yaml

# Maven
target/

# Vagrant
.vagrant

# IntelliJ
.idea/
*.iml

# Eclipse
.project

# Python
.tox/
__pycache__/
*.pyc
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "jjb/global-jjb"]
path = jjb/global-jjb
url = https://gerrit.linuxfoundation.org/infra/releng/global-jjb
11 changes: 11 additions & 0 deletions jenkins.ini.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[job_builder]
ignore_cache=True
keep_descriptions=False
include_path=.
recursive=True

[jenkins]
user=#LFID#
password=#api_token#
url=https://jenkins.edgexfoundry.org/sandbox
query_plugins_info=False
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-management-jobs
project: 'ci-management'
jobs:
- '{project-name}-github-ci-jobs'

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

- defaults:
name: global

# lf-infra-defaults
jenkins-ssh-credential: 'edgex-jenkins-ssh'

# build discards
build-days-to-keep: 30

# Timeout in minutes
build-timeout: 360
build-node: centos7-basebuild-2c-1g

archive-artifacts: ''

# Set default maven version used for everything
maven-version: 'mvn33'

# GitHub configuration
github-org: edgexfoundry
1 change: 1 addition & 0 deletions jjb/global-jjb
Submodule global-jjb added at 9664b6
21 changes: 21 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[tox]
minversion = 1.6
envlist = coala,docs,pep8
skipsdist = true

[testenv:coala]
basepython = python3
deps =
coala
coala-bears
commands =
python3 -m nltk.downloader punkt maxent_treebank_pos_tagger averaged_perceptron_tagger
coala --non-interactive

# [testenv:docs]
# deps = sphinx
# commands = sphinx-build -b html -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html

[testenv:pep8]
deps = flake8
commands = flake8 scripts/
8 changes: 8 additions & 0 deletions yamllint.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
extends: default

rules:
empty-lines:
max-end: 1
line-length:
max: 120

0 comments on commit f440b93

Please sign in to comment.