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

879 Commits

Author SHA1 Message Date
Marcus Holl
f09cd638bb Separate step rendering from step evaluation
... in preparation of additional tags making use of interdependencies between steps,
e.g. something like a '@see' tag for re-using descriptions from other steps.
2018-10-29 14:02:16 +01:00
Marcus Holl
67bc3f633d Relocate 'done' message. 2018-10-29 13:39:37 +01:00
Marcus Holl
fd46329bd1 The empty string instead of 'n/a' in case no value is available 2018-10-29 13:37:58 +01:00
Marcus Holl
5798b0a236 Special handling for 'script' parameter 2018-10-29 13:09:20 +01:00
Marcus Holl
1624001826 Introduce header comment handling
... and several other fixes
2018-10-29 12:57:10 +01:00
Marcus Holl
77419882dd scanNextLineForParam -> docuEnd
since this naming is more open, e.g. when dealing with header comments we do not
scan the next line for a parameter.
2018-10-29 08:09:36 +01:00
Marcus Holl
9532e1c05d WIP: header comment 2018-10-29 08:09:34 +01:00
Marcus Holl
44cf1c6f47 Emit a warning to the log in case the same parameter is documented twice. 2018-10-26 12:21:06 +02:00
Marcus Holl
a8eb963ac2 Support javadoc like comments for parameters specified in a config key list
up to now we onls took withMandatory parameter sections into account
2018-10-26 12:14:03 +02:00
Marcus Holl
d5c89e8b4a -Provide option for generating docu for a single step 2018-10-26 12:08:34 +02:00
Marcus Holl
836eff22b9 Blacklist removed
was only intended to speed-up early development of the script.
2018-10-26 11:59:48 +02:00
Marcus Holl
b7f2ca8c5b Be more failsafe when creating documentation
we do not fail immediatly, instead we continue with the next step. Of course we emit a warning/error into
the log in case of a failure.

In case there is a failure the script returns with != 0
2018-10-26 11:48:11 +02:00
Marcus Holl
f8c48e980d @value -> @possibleValues 2018-10-25 10:02:17 +02:00
Marcus Holl
85f5a7e8ae Adjust docu for checkChangeInDevelopment 2018-10-16 15:44:41 +02:00
Marcus Holl
b7ea5e8f66 add scripts (sh, groovy) for generating docu 2018-10-16 15:44:41 +02:00
Oliver Nocon
17e8390511
add step healthExecuteCheck (#339)
This step allows to perform a basic health check on an installed application.
It verifies that your app has a simple health endpoint available and that there is no error when calling it.
2018-10-12 16:06:41 +02:00
Marcus Holl
a56b9c0c8c
Merge pull request #322 from marcusholl/pr/swaPushOldConfigUsed
swa push old config used
2018-10-11 08:42:52 +02:00
Marcus Holl
479b1d483a Merge remote-tracking branch 'github/master' into HEAD 2018-10-11 08:36:18 +02:00
Marcus Holl
349cb6450c
Merge pull request #333 from marcusholl/pr/stepNameTest
STEP_NAME test
2018-10-11 08:35:39 +02:00
Marcus Holl
27ecf37424 Merge remote-tracking branch 'github/master' into HEAD 2018-10-11 08:26:58 +02:00
Marcus Holl
11a7b24ce8 STEP_NAME test
Asserts that each step (modulo whitelist) comes with a STEP_NAME
field.
2018-10-11 08:24:33 +02:00
Christopher Fenner
3d2bc3f892
add missing parameter (#164) 2018-10-10 12:05:41 +02:00
Marcus Holl
203be37f75 Merge remote-tracking branch 'github/master' into HEAD 2018-10-09 16:57:26 +02:00
Marcus Holl
fd6a01a322
Merge pull request #320 from marcusholl/pr/assertOrderOfGitCommands
Ensure the order of the git commands
2018-10-09 16:51:47 +02:00
Marcus Holl
b8ff2a5285 Merge remote-tracking branch 'github/master' into HEAD 2018-10-09 16:30:55 +02:00
Marcus Holl
e629937db9
Merge pull request #315 from marcusholl/pr/noExplictGetterAnDSettersInCommonPipelineEnvironment
No explict getter an d setters in common pipeline environment
2018-10-09 16:29:49 +02:00
Marcus Holl
b6a205f9aa Merge remote-tracking branch 'github/master' into HEAD 2018-10-09 15:31:43 +02:00
Christopher Fenner
e0aa95645b remove unnecessary import 2018-10-09 15:25:46 +02:00
Christopher Fenner
27959e4644 remove unnecessary imports 2018-10-09 15:25:46 +02:00
Christopher Fenner
bab4772704 remove unnecessary imports 2018-10-09 15:25:46 +02:00
Christopher Fenner
475b977f17 remove unnecessary import 2018-10-09 15:25:46 +02:00
Christopher Fenner
0bc21ed7e2 remove unnecessary import 2018-10-09 15:25:46 +02:00
Christopher Fenner
e068c52f6c remove unnecessary import 2018-10-09 15:25:46 +02:00
Christopher Fenner
a24c1457d2 remove unnecessary import 2018-10-09 15:25:46 +02:00
Christopher Fenner
d6f47e802a
executeDockerOnKubernetes: support workspace/container stashing for sidecar case (#330)
* simplify parameter handover

* extract default contaner name and map

* condense pod execution methods

* simplify closure handling

* fix map issue

* simplify

* stash only if needed

* fix test case
2018-10-08 11:54:13 +02:00
Christopher Fenner
34b675a030
handle test repositories (#324)
* handle test repositories

* use GitUtils

* add test case

* fix test cases

* return stash name

* handle seleniumExecuteTests step

* Revert "handle seleniumExecuteTests step"

This reverts commit 2b33d274fe.

* handle seleniumExecuteTests step

* add import of GitUtils
2018-10-08 11:30:42 +02:00
Oliver Nocon
aeb814fc2b
Merge branch 'master' into pr/noExplictGetterAnDSettersInCommonPipelineEnvironment 2018-10-08 09:45:14 +02:00
Oliver Nocon
0ee27774f6
Merge branch 'master' into pr/assertOrderOfGitCommands 2018-10-08 09:43:16 +02:00
Oliver Nocon
130fe6a941
Merge branch 'master' into pr/swaPushOldConfigUsed 2018-10-08 09:42:33 +02:00
Oliver Nocon
bf753814e4
seleniumExecuteTests - Documentation Update (#327) 2018-10-05 16:10:26 +02:00
Oliver Nocon
7965b5a78d
Bump version (#328) 2018-10-05 13:56:57 +02:00
Christopher Fenner
f10a8c6246
dockerExecuteOnKubernetes: fix stash overriding (#329)
* dockerExecuteOnKubernetes: fix stash overriding

* update comment
2018-10-05 10:51:01 +02:00
Christopher Fenner
d4ca181b1d
ignore bin folder (#326) 2018-10-05 08:22:55 +02:00
Oliver Nocon
7a961ef38e
seleniumExecuteTests - add step to run Selenium tests (#318)
It comes with an extension to executeDocker and executeDockerOnKubernetes to run sidecar containers.

This helps to execute Selenium tests using two Docker images:

1. Execution runtime for tests (e.g. node image)
2. Selenium instance which holds Selenium server + browser

* add documentation & some name cleanup
* include PR feedback
* add step documentation to structure
2018-10-04 17:06:42 +02:00
Marcus Holl
afc17707d8 Notify about old config (properties) used 2018-10-02 10:56:13 +02:00
Marcus Holl
799810a987 Accept utils instance from outside (for testing) 2018-10-02 10:56:04 +02:00
Marcus Holl
ba725dc52f test asserting setupCPE works with config properties file 2018-10-02 10:55:50 +02:00
Marcus Holl
d0d4cac75b Assert that there is no git commit if there should be not commit intentionally (#321)
up to now only the mvn call for setting the version was asserted, but it was not asserted
whether or not there is a commit.
2018-10-02 08:53:21 +02:00
Marcus Holl
252c6da4bd Ensure the order of the git commands
Up to now we checked for git commands, but the order was not taken into account.
Test would pass even if the commit happens before git add.

Now the order of the git commits is asserted.
2018-10-01 13:56:59 +02:00
Marcus Holl
74609a75ae
Merge pull request #316 from marcusholl/pr/lessSh
[refactoring] Reduce number of sh calls
2018-10-01 12:40:24 +02:00