Milko Todorov
dd4f9a1b1d
Exception in case of illegal arguments + tests
2018-01-16 10:54:17 +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
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
Marcus Holl
739b77d6ae
Add test for dockerExecute results in local execution
2017-12-27 10:10:20 +01:00
Marcus Holl
66a65d3907
Make docker more resilent wrt to environment
...
We check
1.) if docker-workflow plugin is installed
2.) if docker itself is installed on the system hosting Jenkins
If one of the conditions is not fullfilled we try to execute
locally.
2017-12-14 14:53:27 +01:00
Daniel Kurzynski
22ee06dc17
Enable configuration via yaml file + mavenExecute as example ( #18 )
...
* Enable configuration via yaml file
* Add documentation
* Add tests
2017-12-06 12:03:06 +01:00
Oliver Feldmann
f72d93ae2c
Remove node from test pipeline
...
node() is not necessary in the LesFurets unit tests. This is especially
misleading for the pipelineExecute step, as the step itself opens a node
closure when loading a pipeline. If used like this in Jenkins
unnecessary executors will be used.
2017-12-05 13:33:03 +01:00
Marcus Holl
02d9ed6239
Merge remote-tracking branch 'github/master' into HEAD
2017-12-04 11:05:42 +01:00
Marcus Holl
88ac3ae43e
Rename externalPipelineExecute to pipelineExecute
2017-12-04 10:51:42 +01:00
Marcus Holl
bbe799fd19
Rename centralPipelineLoad step to externalPipelineExecute
2017-12-04 10:51:42 +01:00
Marcus Holl
67630d829b
change naming of parameter holding the path to the pipeline script.
2017-12-04 10:51:42 +01:00
Marcus Holl
13139da01e
Use a dedicated node() instead of a temporary directory.
2017-12-04 10:51:42 +01:00
Oliver Feldmann
a6df3b3053
'centralPipelineLoad' unit tests
...
Mocking with LesFurets. Check that everything is at the right place.
1. Test with only the mandatory parameter 'repoUrl'.
1. Test setting all available parameters.
1. Test with no parameters throws Exception for missing mandatory
parameter 'repoUrl'.
2017-12-04 10:51:42 +01:00
Marcus Holl
d3efa3edb7
[fix] missing quotes in neoDeploy shell exectution
...
Without proper quotation characters with a special semantics
on shell level (e.g. "${}", "!", """ gets escaped on shell level
before handed over to the neo tool.
neoExecutable is surrounded by double quotes since we may have
shell ${variables} inside the groovy variable.
All other variables (user, host, account, password) are surrounded
by single quotes since we do not expect to be variables used here.
The neoExecutable is
2017-12-01 09:51:54 +01:00
Marcus Holl
a72cd278b4
Merge pull request #5 from marcusholl/pr/piperTestBase
...
piper test base
2017-11-21 16:42:22 +01:00
Alejandra Ferreiro Vidal
72b185e807
remove closure in withPipeline(p)
2017-11-21 16:27:01 +01:00
Alejandra Ferreiro Vidal
5ca3d39b02
adapt setUp method
2017-11-21 14:27:05 +01:00
Alejandra Ferreiro Vidal
d91d01f0da
getMandatoryParameter() unit tests
2017-11-17 14:40:56 +01:00
Marcus Holl
9d59ba16d9
beautify inline script blocks
...
idents only
2017-11-16 14:09:48 +01:00
Marcus Holl
5757acb15e
createPipeline naming improved to defaultPipeline.
2017-11-16 13:50:38 +01:00
Marcus Holl
a64d8e78f1
Make base class working for windows also.
2017-11-16 13:47:00 +01:00
Marcus Holl
98a45bd961
Handling pipeline scripts in base class
2017-11-14 14:02:00 +01:00
Marcus Holl
2c53ade200
Handle shell calls in base class.
2017-11-14 14:02:00 +01:00
Marcus Holl
111a8e8222
Handle echo calls in base class.
2017-11-14 14:02:00 +01:00
Marcus Holl
b5cc4565fc
Introduce PiperTestBase class.
2017-11-14 14:02:00 +01:00
kbarnold
26e093f3e4
Merge pull request #1 from marcusholl/pr/handleSpaceWithNeoDeploy
...
[fix] neo deploy fails with blanks in path of the deployable.
2017-11-13 13:26:57 +01:00
Marcus Holl
7f36ca0f74
Use regex for asserting sed command
...
instead of having two checks, one for the first part of the command and one for asserting
the trailing file name at the end of the command.
2017-11-13 11:22:57 +01:00
Marcus Holl
9d61638eb4
[fix] sed'ing timestamp during mta build fails with blanks in file path.
2017-11-13 11:22:55 +01:00
Marcus Holl
083cb1bcde
[fix] neo deploy fails with blanks in path of the deployable.
2017-11-13 10:51:26 +01:00
Oliver Nocon
47c195805f
Initial version of piper-lib.
2017-11-10 16:30:52 +01:00