1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00
Commit Graph

273 Commits

Author SHA1 Message Date
Marcus Holl
ef0b1bd9dd [refactoring] Rule handling
Starting point for that refactoring: it turned out that the tests
was not independent. The DefaultValueCache which is a singleton
keeps the status over various tests. Success of test execution depends
on the order test execution.

We have now
  * a dedicated rule for resetting the default value cache
  * JenkinsConfiguration rule (which already provided facilities for
    dealing with the configuration) has been replaced by a readYaml rule.
    From the PipelineUnit test framework we get already a handler for
    libraryResource, which is also part of the setup of the default
    values.
  * An auxiliar class which combines the
      * JenkinsSetupRule (registers the lib)
      * JenkinsReadYamlRule (provides facilities for Yaml parsing)
      * JenkinsResetDefaultValueCacheRule (cleans up the DefaultValueCache)
    into a rule chain. By using this rule chain we ensure that our
    setup OK (piper lib registered, and default config can be setup in
    a clean way).
2018-01-29 09:42:23 +01:00
Marcus Holl
0d87348c21 Replace JenkinsConfigRule by more speaking readYaml rule
and reset default cache rule.
2018-01-29 09:42:23 +01:00
Marcus Holl
437abcf225
Merge pull request #41 from marcusholl/pr/neoDeployWithNewConfigFramework
neo deploy with new config framework and introduce docker execute
2018-01-29 09:12:17 +01:00
Marcus Holl
8e3e60f1d5 Avoid interdependencies between tests 2018-01-26 15:39:04 +01:00
Marcus Holl
678b55e771 null docker image in case of missing docker daemon. 2018-01-25 16:41:27 +01:00
Marcus Holl
147d29a714 Check for running docker daemon with docker ps. 2018-01-25 16:41:27 +01:00
Marcus Holl
9a96acff57 change default for neo toolset from neo to neo.sh
The bash script is named 'neo.sh', not 'neo'. 'neo' as default will not work
despite somebody takes extra action to make it work.
2018-01-25 16:41:27 +01:00
Marcus Holl
bc2fb93551 Use dockerExecute inside neoDeploy 2018-01-25 16:41:27 +01:00
Marcus Holl
b843ac0794 Adjust neo deploy docu wrt new config framework. 2018-01-25 16:41:26 +01:00
Marcus Holl
1ff46861e0 Introduce new config framework into neoDeploy 2018-01-25 16:41:26 +01:00
Marcus Holl
2001816318 Remove unused variables inside test 2018-01-25 16:41:22 +01:00
Marcus Holl
e267622309 [refactor/streamline ]Use CPE is case the script is not available 2018-01-25 09:07:06 +01:00
Marcus Holl
3270c8dbec
Merge pull request #48 from o-liver/neoDeploy
Use fileExists to check whether archivePath really exists
2018-01-25 08:57:46 +01:00
Oliver Feldmann
ec9895ec3e Improve fileExists mock
Before this commit the fileExists mock was not doing the same as the
real fileExists method. To stay close to reality we changed it construct
the absolute path and check for that when the fileExists method is
called.
Refactored to archiveName instead of archivePath, as this makes more
sense now.
2018-01-25 08:48:38 +01:00
Oliver Feldmann
58d3907093 Use fileExists to check whether archivePath really exists
When running on a slave we have to use the Pipeline method fileExists,
using the File class' exist on the absolute path fails.
The neo deployment uses the relative path as well.
The fileExists method is mocked with LesFurets.
2018-01-24 13:11:04 +01:00
Christoph Szymanski
ac14b8b00e
Bump Version to 0.2 2018-01-24 12:08:52 +01:00
Christoph Szymanski
5f1e398f07
Update pom.xml 2018-01-24 12:07:26 +01:00
Marcus Holl
c9d7cc8856
Merge pull request #53 from marcusholl/pr/testCleanup
Beautify the tests
2018-01-24 11:51:31 +01:00
Marcus Holl
808170b88a Call pipeline steps directly, without using a pipeline snippet 2018-01-24 11:43:25 +01:00
Oliver Nocon
749aa5e7ed
InfluxDB support (#52)
* adding step for writing metrics to InfluxDB including dependencies
* added documentation
* incorporated PR feedback
2018-01-24 09:55:38 +01:00
Thorsten Duda
e8363e9637 introduce JenkinsConfigRule 2018-01-23 15:02:25 +01:00
Marcus Holl
106a8b4693 Make use of JenkinsShellCallRule 2018-01-23 15:02:25 +01:00
Thorsten Duda
1089e192f3 added JenkinsShellCallRule class 2018-01-23 14:51:18 +01:00
Marcus Holl
492d4a1f68 Make use of Jenkins setup and logging rules 2018-01-23 14:51:18 +01:00
Marcus Holl
b9eedda38e
Merge pull request #44 from milkotodorov/master
Neo deploy - Add support for WAR file deployment/rolling-update
2018-01-23 09:42:02 +01:00
Milko Todorov
d9e8128860 Unit test for warAction: rolling-update 2018-01-17 14:01:15 +01:00
Milko Todorov
48fb7c76e3 Bug when checking for valid warAction 2018-01-17 13:48:26 +01:00
Milko Todorov
62b0cae3ac Changing IllegalArgumentException to general Exception
Requested by Oliver Nocon
2018-01-17 11:19:02 +01:00
Milko Todorov
98a0c5b548 Converting parameters names to lower-case
Requested by Oliver Nocon
2018-01-17 11:17:24 +01:00
Marcus Holl
00df52f9f1
Merge pull request #49 from marcusholl/pr/changePiperLibIdentifier
Change piper lib identifier
2018-01-17 09:28:11 +01:00
Milko Todorov
dd4f9a1b1d Exception in case of illegal arguments + tests 2018-01-16 10:54:17 +01:00
Sven Merk
7a9ac488e6
Merge pull request #50 from marcusholl/pr/doNotPrintTheCallstack
remove printing the callstack
2018-01-16 10:01:54 +01:00
Marcus Holl
a794e9270b remove printing the callstack
I guess nobody is interested in the callstack printed into the log
during the tests.
2018-01-16 09:49:19 +01:00
Marcus Holl
2a7a35db29 [refactoring] Remove redundant code 2018-01-16 09:43:24 +01:00
Marcus Holl
998abed377 Switch library identifier to piper-library-os
this identifier is commonly used.
2018-01-15 15:06:02 +01:00
Milko Todorov
d3d35cc140 Unit tests for the new deployMode in NeoDeploy 2018-01-12 15:56:29 +01:00
Milko Todorov
ced5307eb5 Adjusting UnitTests 2018-01-10 17:40:07 +01:00
Milko Todorov
ac27605e7a Check for invalid deployment mode && Refactoring 2018-01-10 15:01:41 +01:00
Sven Merk
fe89155a04
Initial check-in of lesfurets test improvements (#23)
Adding lesfurets test framwork improvements via helper classes
2018-01-10 10:27:55 +01:00
Milko Todorov
848a8fc9e7 Update documentation for neoDeploy 2017-12-28 16:19:11 +01:00
Milko Todorov
33daaa2c9c Add support for WAR file deployment/rolling-update 2017-12-28 13:10:11 +01:00
Christoph Szymanski
2a09b9bfc1
Merge pull request #40 from o-liver/buildMkdocs
Building documentation with `mkdocs` and aborting Travis build on error.
2017-12-28 10:26:19 +01:00
Marcus Holl
5629bc9d17
Merge pull request #39 from marcusholl/pr/dockerExecuteMoreRobust
Make docker more resilent wrt to environment
2017-12-27 10:43:59 +01:00
Marcus Holl
739b77d6ae Add test for dockerExecute results in local execution 2017-12-27 10:10:20 +01:00
Marcus Holl
4987382cd5 Avoid having the step name redundant 2017-12-27 10:10:18 +01:00
Oliver Feldmann
9fe6d041f8 Cache pip and maven dependencies
To avoid downloading the same things over and over we cache
`$HOME/.cache/pip` for pip and `$HOME/.m2` for maven dependencies.
2017-12-21 15:29:06 +01:00
Oliver Feldmann
613b2ad61d Build docs only for Pull Requests
The check whether the documentation build includes errors or warnings is
only necessary as a voter on the PR.
2017-12-21 15:28:36 +01:00
Oliver Feldmann
1f28e870fe Build documenation with mkdocs
To find errors in the documentation it is build with mkdocs usind strict
mode. Thus warnings also abort the travis build.
2017-12-21 14:48:01 +01:00
Oliver Feldmann
a2708763ee Install mkdocs and material theme using pip
To build the documentation mkdocs, a python package, is necessary. The
material theme is used and also needs to be installed.
Pass PEP370 --user to pip install, otherwise root privileges are needed.
Maven needs to be executed explicitely, as we are modifying the script
lifecycle phase.
2017-12-21 14:46:27 +01:00
Alejandra Ferreiro Vidal
ce8afe679b
Merge pull request #42 from alejandraferreirovidal/addDocu
format docu
2017-12-18 16:49:07 +01:00