Stephan Aßmus
878e09abbb
Adopt work-around for Jenkins on Kubernetes regarding deleteDir()...
...
... from SDK pipeline.
2020-01-24 11:29:35 +01:00
Stephan Aßmus
ddd10683c4
Added support for old "interceptor API" for extensions
...
This is part of the effort to get rid of the "runAsStage" step in the SDK pipeline, and use piperStageWrapper directly. The SDK pipeline currently needs to support for loading "old" extensions where the call() method had different parameters. The support for the exact API can and should be removed, however, having a mechanism for supporting old extension APIs seems beneficial in general.
Another crucial change is the deleteDir() call before unstashing at the beginning of the stage. Without this, the SDK pipeline fails to unstash, since apparently the workspace may not always be clean at that point.
2020-01-24 11:29:35 +01:00
Stephan Aßmus
88a2600d2d
Removed ',' pointed out as syntax error by IDE
2020-01-24 11:29:34 +01:00
Florian Geckeler
b509e14afd
Use maven evaluate for mavenArtifactVersioning
...
* add evaluateFromMavenPom to piper Utils
* adapt mavenExecute to accept `returnStdout` as parameter. If configured mavenExecute will return the stdout for further processing
* adapt tests of mavenExecute and mavenArtifactVersioning as well as add another exception to CommonStepsTest because mavenExecute will return a String if configured
2020-01-23 09:31:01 +01:00
Marcus Holl
820b878819
Align property naming
2020-01-17 09:45:47 +01:00
Marcus Holl
8563da8dda
Use old approach for resolving mode action and docker related params
...
On groovy level we take into account:
- parameters via signature
- project config
- landscape config(s)
- for docker: nested and plain config
also more tests added ...
2020-01-17 09:40:31 +01:00
Marcus Holl
ecb5a9f42d
take mta from cpe into account
2020-01-15 15:24:29 +01:00
Marcus Holl
2a52e5cf6d
Ensure backward compatibility for docker parameters
...
In case docker parameters are configured in the project config or
in a landscape layer we have to take care. The corresponding values from
the context config are only the fallbacks.
2020-01-15 14:00:46 +01:00
Oliver Nocon
a46b57e6b4
Persisted pipeline environment for golang library ( #1091 )
...
* Use commonPipelineEnvironment in go binary
* Update groovy part incl. tests
* Rework structure and naming
* Support influx resources in steps
* Update tests and some cleanups
* Add correct defer handling
* Address PR feedback
* Fix test
* Update resources.go
Co-authored-by: Sven Merk <33895725+nevskrem@users.noreply.github.com>
2020-01-15 12:16:25 +01:00
Marcus Holl
128697e69a
Merge remote-tracking branch 'github/master' into HEAD
2020-01-14 10:45:10 +01:00
Christopher Fenner
53317222a3
fix: correct step parameters (unknown parameters found) ( #1093 )
...
* fix: correct step invocations (WARNING: Unknown parameter(s) found for class)
* fix: correct step invocations (WARNING: Unknown parameter(s) found for class)
2020-01-13 16:28:12 +01:00
Marcus Holl
6a90f81732
Fix code climat issues
2020-01-07 12:40:58 +01:00
Marcus Holl
4578336180
Merge remote-tracking branch 'github/master' into HEAD
2020-01-07 12:35:28 +01:00
Marcus Holl
a2b9718454
Provide operationId also from signature
2019-12-20 15:17:14 +01:00
Marcus Holl
8184312262
Docker pull not hard coded anymore
2019-12-20 15:17:14 +01:00
Marcus Holl
dc86bad480
get ride of the merged config
2019-12-20 14:28:28 +01:00
Marcus Holl
fddfe4aab6
Streamline verbose logging
2019-12-20 11:53:44 +01:00
Marcus Holl
aba476a22d
Do not handover verbose flag explicitly to go binary
...
It is sufficient to have the verbose flag in the configuration.
2019-12-20 11:51:43 +01:00
Christopher Fenner
686235613c
fix(sonar): run sonar scan in NodeJS container ( #1078 )
...
* fix(sonar): run sonar scan in NodeJS container
* fix typo
* adapt tests
2019-12-20 10:51:33 +01:00
Marcus Holl
8d074dbd96
Merge remote-tracking branch 'github/master' into HEAD
2019-12-19 15:49:07 +01:00
Marcus Holl
a1e093467e
put additional configs into dedicates folder
2019-12-19 15:46:13 +01:00
Marcus Holl
767575e75c
Revert "Don't swallow Exception happening inside dockerExecOnK8S.stashWorkspace ( #1071 )" ( #1074 )
...
This reverts commit e64895e022
.
2019-12-18 14:53:38 +01:00
Marcus Holl
e64895e022
Don't swallow Exception happening inside dockerExecOnK8S.stashWorkspace ( #1071 )
2019-12-18 10:07:16 +01:00
Marcus Holl
e6b00fa601
Provide support for additional customer config layers.
2019-12-17 17:00:16 +01:00
Christopher Fenner
57ae0e8f8d
fix(kubernetes): invalidate stashes after usage ( #1064 )
...
* fix(kubernetes): invalidate stashes after usage
fixes #1057
* adjust test case
2019-12-17 15:10:57 +01:00
RainerHimmeroeder
188686f5a7
add step materializeLogFile to jenkins library ( #1046 )
2019-12-16 21:09:25 +00:00
Daniel Mieg
23d7058fdd
Authentication via Cloud Foundry Service Key ( #1034 )
2019-12-16 21:02:30 +00:00
Oliver Nocon
2670b4bc2e
Merge branch 'master' into nevskrem-patch-1
2019-12-16 20:45:07 +00:00
Daniel Mieg
fa75c1ce1c
Improve documentation for cloudFoundryCreateServiceKey ( #1059 )
...
* Improve documentation for cfCreateServiceKey
* Add service instance to prerequisites
2019-12-16 20:44:15 +00:00
Sven Merk
5d14376d19
Update whitesourceExecuteScan.groovy
2019-12-16 20:54:24 +01:00
Daniel Mieg
76988b2035
add parameter compatibilitiy to cloudFoundryCreateServiceKey ( #1065 )
2019-12-16 16:36:13 +00:00
Marcus Holl
264e783833
Don't generate docu for xsDeploy from the source file
...
expected to be done using the metadata file.
2019-12-16 09:20:15 +01:00
Marcus Holl
aefe9243e0
xsDeploy with go
2019-12-13 16:05:55 +01:00
Sven Merk
6f0a3e0c0a
Fix NPE in case no version specified in descriptor
2019-12-11 13:34:01 +01:00
andre2007
80e433aaf9
feat(dub): expose dockerEnvVars and dockerWorkspace in dubExecute ( #1012 )
2019-12-09 16:24:11 +01:00
Prashanth Madarapu
7feaa36868
feat(mta): allow configuration of filename for generated mtar ( #1030 )
...
* Add new config mtarName for mtaBuild step
* Remove unnecessary whitespace changes in unit test
* Sort new config & avoid file operation when this config provided
* Modify the test to take the custom name without extension
* Update new config documentation
Co-Authored-By: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
* custom mta name should be given with mtar extension
* Updated the config documentation
2019-12-06 07:48:20 +01:00
Christopher Fenner
1b95951eb2
fix(mta): create MTAR in project root when using Cloud MBT ( #1024 )
...
* fix(mta): generate MTAR to the project root when Cloud MBT is used
fixes #1023
* add test case
2019-12-04 13:24:23 +01:00
Thorsten Duda
eda1e54085
Merge branch 'master' into pr/revertNoScriptRef
2019-12-04 08:57:17 +01:00
tobiaslendle
5816f26326
Proxies for TMS calls ( #1035 )
2019-12-03 14:55:53 +01:00
Daniel Mieg
2ad57f3d19
Add step cloudFoundryCreateServiceKey ( #989 )
2019-12-02 14:02:51 +01:00
Marcus Holl
e1a4558276
Fix TBD in docu ( #1027 )
...
* Fix TBD in docu
* fix stupid c&p mistake
2019-12-02 11:08:32 +01:00
Christopher Fenner
d57e506217
docs(sonar): update sonar docs ( #1015 )
...
as SonarQube LTS has now moved to v7.9
2019-11-27 08:41:02 +01:00
Marcus Holl
4bbfd78437
Revert "Back commonPipelineEnvironment step by shared class"
...
This reverts commit 149cd96dbf
.
2019-11-26 10:43:59 +01:00
Oliver Nocon
2aa34c7a3f
Fix issue with removed parameter --stepName ( #1007 )
2019-11-25 08:58:16 +01:00
Christopher Fenner
5cec21fe3b
fix: mtaBuild: avoid parameter clash ( #1001 )
...
* fix: mtaBuild: avoid parameter clash
* correct typo
* rename parameter to mtaBuildTool
2019-11-22 12:31:32 +01:00
Oliver Nocon
e671094308
Use piper binary for githubPublishRelease ( #990 )
...
* Use piper binary for githubPublishRelease
2019-11-21 16:34:22 +01:00
Christopher Fenner
74d6df71ef
feat: enable mtaBuild to use cloudMBT ( #970 )
...
* enable mtaBuild to use cloudMBT
* change name to cloudMbt
* change name to cloudMbt
* use v1 of cloudMBT
2019-11-21 14:56:40 +01:00
Christoph Szymanski
9d7d801788
Improve documentation for mtaJarLocation and dockerImage config ( #856 )
2019-11-17 22:08:47 +01:00
Thorsten Duda
2568316c6e
Merge branch 'master' into pr/httpsPushArtifactSetVersion
2019-11-14 11:13:47 +01:00
Christopher Fenner
14e7ef23b4
fix: sonarExecuteScan: safeguard unstash of git metadata ( #976 )
...
* unstash .git folder only if not present, ignore missing stashes
* fix: negate condition
* Update sonarExecuteScan.groovy
2019-11-13 12:55:02 +01:00