forked from edgexfoundry/ci-management
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup the base JJB configuration for EdgeX Signed-off-by: Andrew Grimberg <[email protected]>
- Loading branch information
Showing
10 changed files
with
158 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Submodule global-jjb
added at
9664b6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|