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

Copy symlinks as symlinks in dest tree for tests #54453

Closed
wants to merge 5,348 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
5348 commits
Select commit Hold shift + click to select a range
76cb3aa
Merge branch 'develop' into fix_win_network
twangboy Jun 14, 2019
9ed2a2e
fix typo
noelmcloughlin Jun 14, 2019
1ac476e
Merge branch 'develop' of https://github.com/saltstack/salt into typo
noelmcloughlin Jun 14, 2019
70c99cc
Note on yappi
marbx Jun 14, 2019
129cd7b
Workaround nox's install only flag
s0undt3ch Jun 14, 2019
855e179
Merge branch 'develop' into issue-51957
Akm0d Jun 14, 2019
76bbf02
Merge pull request #53481 from markuskramerIgitt/doc_profiling
Akm0d Jun 14, 2019
7d5dd03
Merge branch 'develop' into typo
xeacott Jun 14, 2019
13b7ee1
Merge branch 'develop' into feature/tplroot
Akm0d Jun 14, 2019
3821c89
Merge pull request #53480 from noelmcloughlin/typo
xeacott Jun 14, 2019
7692a6f
Merge branch 'develop' into develop
Akm0d Jun 14, 2019
de5ab03
Merge branch 'develop' into hotfix/fix-pkg-reqs-develop
Akm0d Jun 14, 2019
facf006
Merge pull request #53409 from s0undt3ch/hotfix/fix-pkg-reqs-develop
dwoz Jun 14, 2019
1f8c07a
Merge branch 'develop' into fix_win_network
twangboy Jun 14, 2019
8211656
Merge branch 'develop' into etcd-returner-is-busted
Akm0d Jun 14, 2019
0c29b57
Add support for Javadoc-style banners in slsutil.banner
amendlik Jun 14, 2019
0b3ad30
Merge pull request #53399 from twangboy/fix_win_network
twangboy Jun 15, 2019
c0b6865
Merge branch 'develop' into hotfix/fix-nox-bypass-develop
s0undt3ch Jun 15, 2019
73994ce
Add example documentation for slsutil.banner
amendlik Jun 15, 2019
ee3a898
Handle exception in slsutil.banner where width is too small to render
amendlik Jun 15, 2019
43d005e
Merge pull request #53487 from s0undt3ch/hotfix/fix-nox-bypass-develop
s0undt3ch Jun 17, 2019
627b5d9
Merge branch 'develop' into add-fully-qualified-cmd-call
twangboy Jun 17, 2019
12c769a
Merge pull request #53311 from doesitblend/add-fully-qualified-cmd-call
twangboy Jun 17, 2019
17f20ee
Merge branch 'develop' into etcd-returner-is-busted
Akm0d Jun 17, 2019
d68039b
Merge pull request #51363 from arizvisa/etcd-returner-is-busted
Akm0d Jun 17, 2019
745c913
Merge branch 'develop' into patch-1
Akm0d Jun 17, 2019
1a37f5b
Add support for Heimdal Kerberos
Jun 18, 2019
7947daa
Fix list principals and get privs
Jun 18, 2019
de301ba
add general exception catch in salt.utils.store_job
mattp- Jun 18, 2019
2790c60
lint
mattp- Jun 18, 2019
92ea5dd
Removed trailing whitespace
Akm0d Jun 18, 2019
1700135
Merge pull request #52856 from steveno/patch-1
garethgreenaway Jun 18, 2019
4376a4e
Merge branch 'develop' into support-heimdal-krb
Akm0d Jun 18, 2019
e18acb3
Merge pull request #53517 from bloomberg/returner-tighten
garethgreenaway Jun 18, 2019
a52e9e7
Merge branch 'develop' into support-heimdal-krb
Akm0d Jun 18, 2019
ff49c22
Merge branch 'develop' into develop-fedora29
Jun 19, 2019
e14145f
Merge branch 'develop' into fix_ipaddress_python3
Akm0d Jun 19, 2019
c79fc37
Merge pull request #51803 from misch42/fix_ipaddress_python3
Akm0d Jun 19, 2019
40194e8
Merge branch 'develop' into support-heimdal-krb
Akm0d Jun 19, 2019
7ea3e23
Merge pull request #53515 from mickenordin/support-heimdal-krb
Akm0d Jun 19, 2019
f769613
Added test for issue #4438
Akm0d Jun 19, 2019
346364f
Merge branch 'develop' of https://github.com/saltstack/salt into pkgrepo
Akm0d Jun 19, 2019
9b2f18f
Check if key_url needs changing
Akm0d Jun 19, 2019
cb961b0
Removed OS specification
Akm0d Jun 19, 2019
aa10a59
Merge branch 'develop' into patch-2
Akm0d Jun 19, 2019
9525544
Removed unused import and unsolicited formatting
Akm0d Jun 19, 2019
8b07311
Fixed formatting
Akm0d Jun 19, 2019
aa68518
Merge branch 'develop' into patch-1
Akm0d Jun 19, 2019
1941458
Created separate tests
Akm0d Jun 19, 2019
23eda63
enable testing mode for these cases
Akm0d Jun 19, 2019
adaef7e
Update salt/states/pkgrepo.py
Akm0d Jun 19, 2019
f92024c
Merge branch 'develop' into develop-fedora29
Jun 19, 2019
a6c7e60
Merge pull request #53537 from Akm0d/pkgrepo
waynew Jun 20, 2019
800a214
Merge branch 'develop' into patch-2
Akm0d Jun 20, 2019
3d0b5ff
Merge pull request #52798 from myii/patch-2
Akm0d Jun 20, 2019
98baef2
Merge branch 'develop' into patch-1
Akm0d Jun 20, 2019
799c887
Merge branch 'develop' into feature/tplroot
Akm0d Jun 20, 2019
a0d8ec5
Merge branch 'develop' into develop-fedora29
Jun 20, 2019
c24dfef
Merge pull request #51814 from myii/feature/tplroot
Akm0d Jun 20, 2019
ea346ec
Merge branch 'develop' into develop
Akm0d Jun 20, 2019
5eb189c
Merge pull request #51572 from kaidokert/develop
Akm0d Jun 20, 2019
176ec5f
Merge branch 'develop' into infra5209
Akm0d Jun 20, 2019
b4a754c
Merge pull request #51923 from bodhi-space/infra5209
Akm0d Jun 20, 2019
2418716
Merge branch 'develop' into issue-51957
Akm0d Jun 20, 2019
a9b2fc5
Merge pull request #51965 from recursiveMake/issue-51957
Akm0d Jun 20, 2019
a421da4
Merge branch 'develop' into patch-1
Akm0d Jun 20, 2019
8973ed2
Merge pull request #51670 from OrangeDog/patch-4
Ch3LL Jun 20, 2019
11cf2a8
catch any exception on reading rsa key
mattp- Jun 20, 2019
0fe949c
Merge branch 'develop' into patch-1
Akm0d Jun 20, 2019
6be3259
add debug exc
mattp- Jun 21, 2019
c74763d
log trace on debug loglevel
mattp- Jun 21, 2019
e0a8ae9
Merge branch 'develop' into develop-fedora29
Jun 21, 2019
e4cb0d0
Merge pull request #53427 from bryceml/develop-fedora29
Jun 21, 2019
306002a
Update pipelines to work on old and new jenkins
s0undt3ch Jun 21, 2019
49ded83
Merge pull request #53528 from s0undt3ch/hotfix/fix-nox-bypass-develop
s0undt3ch Jun 22, 2019
379192d
Merge pull request #53555 from bloomberg/auth-rsa
s0undt3ch Jun 23, 2019
02851d5
Update pillar.py
yohonet Jun 24, 2019
b42af7f
Merge pull request #53571 from yohonet/patch-1
cmcmarrow Jun 24, 2019
fb2b306
Forward port PR 53412 to Neon
cro Jun 24, 2019
4b0ae8e
Make doc build test pass
cro Jun 24, 2019
70fb7dd
Merge pull request #53589 from cro/53412-develop
cro Jun 25, 2019
fd3ee17
Minor fixes/adjustments to the new CI pipelines
s0undt3ch Jun 24, 2019
934644e
Merge pull request #53578 from s0undt3ch/hotfix/fix-nox-bypass-develop
s0undt3ch Jun 25, 2019
7fb78e6
Adds tests for states/win_iis.py
Jun 26, 2019
696230d
Merge branch 'develop' into patch-1
Akm0d Jun 26, 2019
ced9ae7
Adds tests for win_iis
Jun 26, 2019
01052fc
Merge branch 'develop' into state_test_win_iis
cmcmarrow Jun 26, 2019
ad26a1e
CI Pipelines. Timeout after getting a node. Report exit code.
s0undt3ch Jun 26, 2019
a63f2b7
Merge pull request #53605 from cmcmarrow/state_test_win_iis
cmcmarrow Jun 26, 2019
8480929
Merge branch 'develop' into patch-1
Akm0d Jun 26, 2019
f653310
__opts__ is not self.opts for metaproxies.
cro Jun 26, 2019
18d38b1
Add unit test to check for __opts__ vs opts mismatch
cro Jun 26, 2019
1d9c130
Merge pull request #53617 from cro/metaproxy_matcher_opts_develop
DmitryKuzmenko Jun 27, 2019
bcf23bb
runners.git_pillar: Also match the repo parameter against the repo name
sathieu Jun 27, 2019
3131e2b
Create a state for the cpan module (#53413)
Akm0d Jun 27, 2019
ffb9cd0
Merge branch 'develop' into patch-1
Akm0d Jun 27, 2019
b1c881a
Merge pull request #53612 from s0undt3ch/hotfix/fix-nox-bypass-develop
s0undt3ch Jun 27, 2019
86ea94c
Merge branch 'develop' into patch-1
Akm0d Jun 27, 2019
8ba8360
Don't double encode s3 paths
benjumanji Jun 19, 2019
bc338af
generify masterminion returners function not found error - may be bec…
dhiltonp Jun 27, 2019
9120a18
Merge branch 'develop' into git_pillar_update_by_name
Akm0d Jun 27, 2019
f2f4bdc
Merge branch 'develop' into photon_pkgrepo
xeacott Jun 27, 2019
378e137
Merge pull request #53628 from dhiltonp/gen
Akm0d Jun 27, 2019
c8f0d79
Merge branch 'develop' into patch-1
Akm0d Jun 27, 2019
f139c93
kernel, os, os_family may not exist in __grains__ - use get
dhiltonp Jun 27, 2019
5b7c857
look at os_family['Solaris'] instead of checking all* solaris distros
dhiltonp Jun 27, 2019
ffe45d0
Merge branch 'develop' into some-pkgin
dhiltonp Jun 28, 2019
36e771d
Merge branch 'develop' into git_pillar_update_by_name
Akm0d Jun 28, 2019
55ab4f8
Merge pull request #53622 from sathieu/git_pillar_update_by_name
Akm0d Jun 28, 2019
1230f12
Merge branch 'develop' into patch-1
Akm0d Jun 28, 2019
fbfbaa9
Merge branch 'develop' into some-pkgin
garethgreenaway Jun 28, 2019
1dc8e30
Merge pull request #53632 from dhiltonp/some-pkgin
dhiltonp Jun 29, 2019
7e9f8a3
Merge pull request #52550 from lomeroe/photon_pkgrepo
garethgreenaway Jul 1, 2019
46878db
Create test_s3fs.py
garethgreenaway Jul 1, 2019
998b643
Merge branch 'develop' into antiquote
garethgreenaway Jul 1, 2019
a366b90
Merge branch 'develop' into banner
Ch3LL Jul 2, 2019
4d2fa53
Update test_s3fs.py
garethgreenaway Jul 2, 2019
126462d
adds windows event log support
Jul 3, 2019
b338114
adds win_event_viewer
Jul 3, 2019
e47a122
adds win_event_viewer
Jul 3, 2019
3445485
adds win_evnet_viewer
Jul 3, 2019
36ef5bf
adds win_event_viewer
Jul 3, 2019
3aed123
adds win_event_viewer
Jul 3, 2019
1f892c0
adds win_event_viewer
Jul 3, 2019
c4d39df
Merge pull request #53540 from benjumanji/antiquote
garethgreenaway Jul 4, 2019
c4f040a
Add Fedora 30 requirements files
s0undt3ch Jul 3, 2019
88b03fa
Python 2 is no longer supported
s0undt3ch Jul 3, 2019
75d72af
Delete Fedora 28 static requirements
s0undt3ch Jul 3, 2019
3400676
Delete Opensuse 42 static requirements
s0undt3ch Jul 3, 2019
e989176
Switch docs building under Py3
s0undt3ch May 28, 2019
c127f37
Have sphinx turn errors into warnings
s0undt3ch May 29, 2019
ffbd9fb
Allow docs to be built on Python >= 3.5, not just Python 3.6
s0undt3ch May 29, 2019
1d1ba54
Switch docs and lint to Py3
s0undt3ch Jul 3, 2019
c89f572
Fix doc build errors
s0undt3ch Jul 3, 2019
45a5141
Stop using the deprecated `log.warn()` method
s0undt3ch Jul 4, 2019
0702794
Upgrade to latest PyLint
s0undt3ch Jul 4, 2019
d060094
Stop using deprecated methods(actually remove py2 only code)
s0undt3ch Jul 4, 2019
12b73fb
Use milestones to abort previous, still running, builds, on new builds
s0undt3ch Jul 4, 2019
0b00f5a
Enhance lint report
s0undt3ch Jul 4, 2019
325a956
Merge pull request #53699 from s0undt3ch/features/f30-reqs-develop
s0undt3ch Jul 4, 2019
efc7926
Archive the kitchen logs
s0undt3ch Jul 5, 2019
f74ede3
Improve slack message
s0undt3ch Jul 5, 2019
b021e5d
Merge branch 'develop' into patch-1
Akm0d Jul 5, 2019
1baaa69
adds win_event_viewer
Jul 5, 2019
a0c63ef
adds win_event_viewer
Jul 5, 2019
999a70e
adds win_event_viewer
Jul 5, 2019
439ea2b
adds win_event_viewer
Jul 5, 2019
132b225
Merge pull request #53727 from s0undt3ch/features/f30-reqs-develop
s0undt3ch Jul 5, 2019
26ec673
adds win_event_viewer
Jul 5, 2019
42075b0
adds win_event_viewer
Jul 5, 2019
5b3d74e
adds win_event_viewer
Jul 5, 2019
ce96200
adds win_event_viewer
Jul 5, 2019
deae660
adds win_event_viewer
Jul 5, 2019
ec2b053
adds win_event_viewer
Jul 5, 2019
5f5f190
adds win_event_viewer
Jul 5, 2019
c18dfc8
Don't call potentially missing shade library (#53734)
Akm0d Jul 6, 2019
5f18f30
adds win_events_viewer
Jul 8, 2019
b181d13
adds win_event_viwer
Jul 8, 2019
02f06df
adds win_event_viewer
Jul 8, 2019
10dd516
adds win_event_viewer
Jul 8, 2019
89457c3
Merge branch 'develop' into patch-1
Akm0d Jul 8, 2019
d61ca03
adds win_event_viewer
Jul 8, 2019
df3d6a6
adds win_event_viewer
Jul 8, 2019
f25c67f
Merge branch 'develop' into win_event_viewer
cmcmarrow Jul 8, 2019
e3956ba
Merge pull request #53700 from cmcmarrow/win_event_viewer
cmcmarrow Jul 8, 2019
1eb47a1
increase sleep time between kitchen create failures to account for ap…
Jul 16, 2019
d58e50a
Merge pull request #53876 from bryceml/develop-increase-sleep
dwoz Jul 17, 2019
0e00301
compare probe/src directly issues/49855
Mar 26, 2019
93ab377
file.py fix newlines for pylint
jubrad Mar 28, 2019
b5d2f2b
file.py one more pylint white space fix
jubrad Mar 28, 2019
cbd78d8
strip newlines when checking string equality
jubrad Mar 28, 2019
12abec1
replace module.file._starts_till with _line_match
Mar 29, 2019
6242492
Add tests for #52333
Ch3LL Jun 4, 2019
36ba684
strip probe as well as src in _line_match
jubrad Jun 7, 2019
1ceeaa7
Refactor & test line, fix win issues
waynew Jun 27, 2019
5dcfcea
Improve file.line docs
waynew Jul 1, 2019
f13b37d
Fix some tests
waynew Jul 2, 2019
9c011c3
Fix lint
waynew Jul 2, 2019
1c85a9e
Fallback to no UID
waynew Jul 3, 2019
13cee7f
Skip chattr tests on Windows
waynew Jul 5, 2019
76cf805
Update CODEOWNERS github file
Ch3LL Jul 3, 2019
d232c2c
Merge pull request #53889 from waynew/49855-fix-file.line-issues-develop
waynew Jul 22, 2019
ed94db6
Fix typo in vault docs
nikolas Jul 23, 2019
35ab557
Merge pull request #53893 from Ch3LL/codeowners_develop
Ch3LL Jul 23, 2019
a1a20f5
Fix a typo in zonecfg module
Jul 23, 2019
37a2f72
Merge pull request #53975 from ninefathom/zonecfg-fix-001
Akm0d Jul 23, 2019
d5b7d04
auth: log details in case of user auth issue
eliasp Jul 24, 2019
d8acdf5
tests: fix typo (`perkissive` > `permissive`)
eliasp Jul 24, 2019
439daa2
Fixes bug in MongoDb User State causing changes to be applied in case…
dbuenor Jul 4, 2019
8fa56f8
Added new test for mongodb_user.present that verifies the proper func…
dbuenor Jul 23, 2019
c3950a2
Fixed whitespaces at mongodb_user.present test #53963
dbuenor Jul 23, 2019
889cc14
Changed returned result when using test=true for mongodb_user.present…
dbuenor Jul 24, 2019
b101422
Refactorized mongodb_user.present to avoid showing successful changes…
dbuenor Jul 24, 2019
8c86767
Merge pull request #53994 from eliasp/develop-typo-perkissive-permissive
waynew Jul 24, 2019
b834782
auth: use log formatting for message
eliasp Jul 25, 2019
9c54bb3
zypperpkg: fix pkg.list_pkgs cache
aplanas Jul 26, 2019
23dc1cb
Merge pull request #54024 from aplanas/fix_zypperpkg
waynew Jul 26, 2019
a715b2c
Fix potential recursion/duplicate object detection
waynew Jul 25, 2019
3316cb5
systemd_service: add firstboot function
aplanas Jun 5, 2019
90e19da
Merge pull request #54018 from waynew/more-recursive-msgpack-fix
waynew Jul 26, 2019
70403b7
Merge pull request #53381 from aplanas/fix_firstboot
waynew Jul 26, 2019
9167a35
improve documentation regarding state.sls
Jul 26, 2019
0663bf5
auth: correct typos in docstrings
eliasp Jul 29, 2019
796e8a8
Merge pull request #54047 from eliasp/salt.auth-typos
waynew Jul 29, 2019
0fea6b3
py3 results in broken mdata grains
sjorge Jul 10, 2019
93d7a93
Missing grains on SmartoS GZ under py3
sjorge Jul 10, 2019
2a729f3
py3 salt.utils.platform.is_smartos_zone/global fix
sjorge Jul 13, 2019
e088fea
Add tests for salt.grains.mdata
sjorge Jul 23, 2019
009649f
Merge branch 'develop' into patch-1
Akm0d Jul 29, 2019
38d146f
Merge branch 'develop' into state-sls-docs
Jul 29, 2019
6f98277
Add tests for salt.grains.smartos
sjorge Jul 23, 2019
835812c
Commit to fix lint problems to allow successful pr-lint build
dbuenor Jul 30, 2019
6f614c1
Merge branch 'develop' into banner
Ch3LL Jul 30, 2019
d078970
adds webconfig tests
Jul 30, 2019
2e6cf87
fix names to various package modules so links work
Jul 15, 2019
f82e497
Update slsutil.banner example documentation
amendlik Jul 31, 2019
cb6cfcc
Merge pull request #53794 from sjorge/py3_smartos_grains
waynew Jul 31, 2019
bb7a3eb
Merge branch 'develop' into patch-1
Ch3LL Aug 1, 2019
57fd04b
Merge pull request #51628 from myii/patch-1
Ch3LL Aug 1, 2019
23b16d8
Adding accept_ra 2 option to modules.debian_ip
Natrinicle Jul 30, 2019
5afdeb7
Adding Unit Tests and Fixing debian_eth.jinja
Natrinicle Aug 2, 2019
2aa8981
Merge branch 'develop' into web_confi_test
cmcmarrow Aug 5, 2019
5e9780d
Merge branch 'develop' into develop
Aug 8, 2019
bea10eb
updating git repo where rbenv is hosted
Aug 8, 2019
e444548
Merge branch 'develop' into state-sls-docs
Aug 8, 2019
8f1d9f1
Merge pull request #54144 from bryceml/update_rbenv_git_repo
dwoz Aug 8, 2019
4008718
Merge branch 'develop' into develop
Aug 8, 2019
6acc412
Merge pull request #54037 from bryceml/state-sls-docs
dwoz Aug 8, 2019
0f5e101
Merge branch 'develop' into develop
Aug 8, 2019
4638580
Fix x509 typos
Aug 9, 2019
4181ac4
Fix grains.core pylint error
Ch3LL Aug 9, 2019
df31702
Merge pull request #54158 from stratusjerry/typo_fix
dwoz Aug 12, 2019
c9c3a4b
Merge pull request #53499 from amendlik/banner
dwoz Aug 13, 2019
e036ac2
Merge branch 'develop' into develop
Aug 16, 2019
b10a4fd
Merge branch 'develop' into add-accept-ra-option
Natrinicle Aug 16, 2019
83947f5
add new saltconf ads
Aug 19, 2019
bd5cadc
Merge pull request #54255 from bryceml/develop_new_saltconf_ads
dwoz Aug 19, 2019
293455b
Merge branch 'develop' into develop
Aug 19, 2019
5238b90
Merge pull request #53860 from bryceml/develop
dwoz Aug 19, 2019
ac68148
Merge branch 'develop' into add-accept-ra-option
Natrinicle Aug 21, 2019
2d44a8e
Merge branch 'develop' into web_confi_test
cmcmarrow Aug 23, 2019
e35e9a6
Merge pull request #53964 from nikolas/vault-docs-typo
dwoz Aug 23, 2019
83a41a1
Merge pull request #54163 from Ch3LL/lint_core
dwoz Aug 23, 2019
abb8b4d
Merge pull request #53965 from dbuenor/dbueno/bug-mongodb-user-presen…
dwoz Aug 23, 2019
706ee70
Merge pull request #54069 from cmcmarrow/web_confi_test
dwoz Aug 23, 2019
ba91a1e
Merge pull request #53990 from eliasp/develop-log-warning-user-auth-e…
dwoz Aug 23, 2019
37ceccb
Merge pull request #54067 from Natrinicle/add-accept-ra-option
dwoz Aug 23, 2019
3876f50
modifying saltconf ads
Aug 30, 2019
705e8cc
Merge pull request #54363 from bryceml/develop_saltconf_ads
dwoz Aug 30, 2019
fc6a861
Copy symlinks as symlinks in dest tree for tests
vin01 Sep 11, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
157 changes: 92 additions & 65 deletions .ci/docs
Original file line number Diff line number Diff line change
@@ -1,69 +1,96 @@
pipeline {
agent {
label 'docs'
}
options {
timestamps()
ansiColor('xterm')
timeout(time: 2, unit: 'HOURS')
}
environment {
PYENV_ROOT = "/usr/local/pyenv"
PATH = "$PYENV_ROOT/bin:$PATH"
PY_COLORS = 1
SPHINXOPTS = "-W"
}
stages {
stage('github-pending') {
steps {
githubNotify credentialsId: 'test-jenkins-credentials',
description: 'Testing docs...',
status: 'PENDING',
context: "jenkins/pr/docs"
}
}
stage('setup') {
steps {
sh '''
eval "$(pyenv init -)"
pyenv --version
pyenv install --skip-existing 2.7.15
pyenv shell 2.7.15
python --version
pip install -U https://github.com/s0undt3ch/nox/archive/hotfix/py2.zip#egg=Nox==2018.10.17
nox --version
'''
}
}
stage('build') {
steps {
sh '''
eval "$(pyenv init -)"
pyenv shell 2.7.15
nox -e docs
'''
archiveArtifacts artifacts: 'doc/doc-archive.tar.gz'
// Define the maximum time, in hours, that a test run should run for
def global_timeout = 2
def salt_target_branch = 'develop'

properties([
buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '10')),
])

// Be sure to cancel any previously running builds
def buildNumber = env.BUILD_NUMBER as int
if (buildNumber > 1) {
// This will cancel the previous build which also defined a matching milestone
milestone(buildNumber - 1)
}
// Define a milestone for this build so that, if another build starts, this one will be aborted
milestone(buildNumber)

def shell_header

node('docs') {
timeout(time: global_timeout, unit: 'HOURS') {
ansiColor('xterm') {
timestamps {
try {
// Set the GH status even before cloning the repo
if (env.NODE_NAME.startsWith('jenkins-pr-')) {
stage('github-pending') {
githubNotify credentialsId: 'test-jenkins-credentials',
description: 'Testing docs...',
status: 'PENDING',
context: "jenkins/pr/docs"
}
shell_header = 'export PYENV_ROOT="/usr/local/pyenv"\nexport PATH="$PYENV_ROOT/bin:$PATH"'
} else {
shell_header = ''
}
// Checkout the repo
stage('checkout-scm') {
cleanWs notFailBuild: true
checkout scm
}

// Setup the kitchen required bundle
stage('Setup') {
sh shell_header + '''
eval "$(pyenv init -)"
pyenv --version
pyenv install --skip-existing 3.6.8
pyenv shell 3.6.8
python --version
pip install -U nox-py2
nox --version
'''
}

stage('Build') {
sh shell_header + '''
eval "$(pyenv init -)"
pyenv shell 3.6.8
nox -e docs
'''
archiveArtifacts artifacts: 'doc/doc-archive.tar.gz'
}
} catch (Exception e) {
currentBuild.result = 'FAILURE'
} finally {
cleanWs notFailBuild: true
if (currentBuild.resultIsBetterOrEqualTo('SUCCESS')) {
if (env.NODE_NAME.startsWith('jenkins-pr-')) {
githubNotify credentialsId: 'test-jenkins-credentials',
description: 'The docs job has passed',
status: 'SUCCESS',
context: "jenkins/pr/docs"
}
} else {
if (env.NODE_NAME.startsWith('jenkins-pr-')) {
githubNotify credentialsId: 'test-jenkins-credentials',
description: 'The docs job has failed',
status: 'FAILURE',
context: "jenkins/pr/docs"
}
try {
slackSend channel: "#jenkins-prod-pr",
color: '#FF0000',
message: "*${currentBuild.currentResult}*: ${currentBuild.getFullDisplayName()} (<${env.BUILD_URL}|open>)"
} catch (Exception e) {
sh 'echo Failed to send the Slack notification'
}
}
}
}
}
}
post {
always {
cleanWs()
}
success {
githubNotify credentialsId: 'test-jenkins-credentials',
description: 'The docs job has passed',
status: 'SUCCESS',
context: "jenkins/pr/docs"
}
failure {
githubNotify credentialsId: 'test-jenkins-credentials',
description: 'The docs job has failed',
status: 'FAILURE',
context: "jenkins/pr/docs"
slackSend channel: "#jenkins-prod-pr",
color: '#FF0000',
message: "FAILED: PR-Job: '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})"
}
}
}

// vim: ft=groovy
117 changes: 0 additions & 117 deletions .ci/kitchen-centos6-py2

This file was deleted.

117 changes: 0 additions & 117 deletions .ci/kitchen-centos7-py2

This file was deleted.

Loading