Skip to content

Commit e52e840

Browse files
committed
Create sample layout for library
This patch creates directory layout. This layout is not final and will be changed in future
1 parent 034876d commit e52e840

File tree

8 files changed

+48
-0
lines changed

8 files changed

+48
-0
lines changed

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
*.pyc
2+
output/
3+
*.ini
4+
!tox.ini
5+
.tox
6+
.idea
7+
.venv
8+
venv

conf/jenkins_job.ini.example

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[jenkins]
2+
user=my_username
3+
password=my_secret_password
4+
url=https://my.jenkins.com/
5+
query_plugins_info=False
6+
7+
[job_builder]
8+
ignore_cache=True
9+
keep_descriptions=False
10+
recursive=True
11+
12+
[__future__]
13+
param_order_from_yaml=false

conf/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
jenkins-job-builder==1.6.1
2+
git+https://github.com/bookwar/jenkins-job-builder-stash-pr

library/macros/.gitkeep

Whitespace-only changes.

library/scripts/.gitkeep

Whitespace-only changes.

library/templates/.gitkeep

Whitespace-only changes.

reference/servers/example/projects/.gitkeep

Whitespace-only changes.

tox.ini

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[tox]
2+
minversion = 1.6
3+
skipsdist = True
4+
envlist = example,pep8
5+
6+
[testenv]
7+
basepython = python2
8+
deps = -r{toxinidir}/conf/requirements.txt
9+
usedevelop = False
10+
commands =
11+
jenkins-jobs --conf conf/jenkins_job.ini.example test reference/servers/{envname}:library -o {toxinidir}/output/{envname}
12+
13+
[testenv:example]
14+
commands =
15+
jenkins-jobs --conf conf/jenkins_job.ini.example test reference/servers/{envname}:library -o {toxinidir}/output/{envname}
16+
17+
[testenv:pep8]
18+
deps = flake8
19+
commands = flake8
20+
21+
[flake8]
22+
exclude = .git,.tox,.venv,venv
23+
show-pep8 = True
24+
show-source = True
25+
count = True

0 commit comments

Comments
 (0)