Commit Graph
54 Commits
Author SHA1 Message Date
Oliver Feldmann bfeb1641b2 Add tgz files to deploy descriptor (#3205) 2021-10-27 10:47:22 +02:00
Oliver Feldmann 65083438cf Add tpl files to deployDescriptor stash (#3202) 2021-10-25 13:57:46 +02:00
Oliver Feldmann f20af7ba00 Make packageId optional (#3019) 2021-07-29 14:29:47 +02:00
Oliver Feldmann 7259ccc726 Remove version from deploy step (#2978) 2021-07-27 09:51:56 +02:00
Oliver FeldmannandLinda Siebert 9e22251c8d CPI - Improve serviceKey parameter name and description (#2958)
* Make credential id name more descriptive

* Improve serviceKey description

* Change descriptions to add word service

Co-authored-by: Linda Siebert <linda.siebert@sap.com>
2021-07-01 10:07:57 +02:00
Oliver FeldmannandThorsten Duda 90d0baa56f Put share cpi parameters in general scope (#2948)
Co-authored-by: Thorsten Duda <thorsten.duda@sap.com>
2021-06-29 10:09:18 +02:00
Oliver Feldmann f9bfb037a0 Don't configure secret with config file (#2866) 2021-06-14 15:42:23 +02:00
Oliver FeldmannandRoland Stengel d0f7400122 kubernetesDeploy - Allow docker config.json file (#2829)
* Introduce docker config.json parameter for kubectl

* Use docker config.json parameter for helm

* Export definition of kube secret parameters

* fix username password existence check

* choose more fitting name for secret spec

* Adopt review suggestions

Co-authored-by: Roland Stengel <r.stengel@sap.com>
2021-06-11 10:41:03 +02:00
Oliver FeldmannandSrinikitha Kondreddy d766f6befe dockerExecuteOnKubernetes: Add capability for volume mounts (#2784)
* Remove unused container variable

* Add volume mounts functionality

* Make volume mounts optional

* Replace placeholder with {}

* Don't provide sidecar volume mounts

* Remove unnecessary parameter volumeName

* Add documentation for new parameter

* Use empty map for {}

* Update vars/dockerExecuteOnKubernetes.groovy

Co-authored-by: Srinikitha Kondreddy <srinikitha.kondreddy@sap.com>

* Improve documentation

Co-authored-by: Srinikitha Kondreddy <srinikitha.kondreddy@sap.com>
2021-04-29 11:39:34 +02:00
Oliver Feldmann 1b032b5c82 Skip checkout flag (#2594)
* Skip checkout flag

Defaults to null==false
We need the option to provide an scmInfo object by the user

* Check skipCheckout is Boolean

* Require scmInfo map in case checkout is skipped
2021-02-11 16:21:57 +01:00
Oliver Feldmann 92fe76b2aa Add CNAME file (#2595) 2021-02-11 14:12:18 +01:00
Oliver Feldmann 741b49140e Move pull image parameters to general section (#2478)
* Move pull image parameters to general section

* Allow no nesting override

* Test dockerPullImage can be set to true

As the default is false, we need to make sure it can still be set to true.
2021-01-13 10:48:48 +01:00
Oliver Feldmann ce9b958410 Document SendRequest error case (#2507)
* Document error case

* Improve docu text
2021-01-12 15:26:45 +01:00
Oliver Feldmann 96ebaa1a20 chore(docs): Fix switheroo of deployType and deployTool typo (#2464)
* Fix switcheroo

* Add commas
2020-12-11 13:11:36 +01:00
Oliver FeldmannandStephan Aßmus 4f6b99cead Don't allow empty strings as default container parameters (#2406)
First a bug fix is addressed in which the pull policy could not be configured to false by configuring the general configuration. It could neither be configured via dockerExecute or dockerExecuteOnKubernetes, even though this parameter is docker specific. Only by configuring the specific step where one wants to set the pull policy to false can it be configured.

As the bug stems from zero values being in the context config map, which is also addressed with this PR. That is the second part: Context config parameters are only set if they have a value.

* Don't set pull image if not configured

Otherwise, if the pull policy is not set explicitly for a step, dockerPullImage is set to true. Thus, before this change, it cannot be set in the general, or in dockerExecute or in dockerExecuteOnKubernetes configuration.

* Fix unit tests

* Add pullImage parameter test

* Do not place empty default values in context config

* Use putIfNotEmpty for sidecar container options

* Export common configuration

Keys that are set by both main and sidecar container can be exported

Co-authored-by: Stephan Aßmus <stephan.assmus@sap.com>
2020-12-10 11:28:39 +01:00
Oliver FeldmannandChristopher Fenner 9812391145 Remove image pull policy from steps defaults (#2310)
Without this change the default setting from dockerExecute
and dockerExecuteOnKubernetes are overruled.
With this change the user has to explicitly configure a step
if they want this behaviour.

Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
2020-11-05 10:58:32 +01:00
Oliver Feldmann 5b5f1fe873 Remove closure in switch case (#2302)
Before this commit, if the closure of the switch case is executed a
CpsCallableInvocation exception is thrown.
2020-11-03 12:50:00 +01:00
Oliver FeldmannandChristopher Fenner 2a0e044e20 fix(docs): add description of buildTool for cfDeploy (#2187)
Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
2020-10-15 19:03:16 +02:00
Oliver Feldmann 57816e0275 fix(docs): correct notes text box (#2189) 2020-10-15 18:53:45 +02:00
Oliver Feldmann 19f45aa687 Move setting git info in cpe from stage init to setupCPE step (#2083)
* Move setting git info in cpe

Everything cpe related should be done in setupCommonPipelineEnvironment.
Thus a new parameter was introduced to accept the scmInfo object
returned by a checkout.

* Improve documentation
2020-10-05 12:50:03 +02:00
Oliver Feldmann 41abec6b10 Fix generator typo (#2008)
* Fix typo in generator code

* Fix typo in generated code
2020-09-10 14:37:46 +02:00
cd4e4eb3b4 docs: Fix old protecode host url (#1745)
* Fix old protecode host url

* Update documentation/docs/steps/protecodeExecuteScan.md

* fix trailing space

Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
2020-07-06 11:26:37 +02:00
Oliver FeldmannandOliver Nocon a8953d4f28 Fix cloudFoundryDeploy config keys in Acceptance (#1296)
* Fix cloudFoundryDeploy config keys in Acceptance

* Add neo config keys

Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2020-04-03 11:03:00 +02:00
Oliver FeldmannandOliver Nocon 5eb8edd3d9 Fix tip in documentation (#1196)
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2020-03-04 17:01:49 +01:00
Oliver Feldmann af5c16ef46 setupCommonPipelineEnvironment: support yaml config file ending (#811)
* Allow for yaml file ending

* Format code
2019-07-31 12:22:26 +02:00
Oliver FeldmannandChristoph Szymanski 073ce90fc9 Add cds test case (#810)
* Add cds test case

* Fix typo

Co-Authored-By: Christoph Szymanski <christoph.szymanski@sap.com>
2019-07-31 10:39:18 +02:00
Oliver Feldmann 79bc304c09 add ui5 consumer test (#802) 2019-07-23 14:54:38 +02:00
Oliver Feldmann 5fcefb55b8 Fix typo in yaml (#722) 2019-05-23 08:13:23 +02:00
Oliver Feldmann a4af238c95 fix groovy consumer test bugs (#696)
* Fix order so hash is set before notify

* Always run tests on master branch
2019-05-09 12:10:12 +02:00
Oliver Feldmann aca60b3ee6 groovy integration tests (#671) 2019-05-09 10:28:54 +02:00
Oliver Feldmann 9b6919f473 Merge pull request #674 from SAP/docFix
Add note admonition
2019-04-25 12:12:34 +02:00
Oliver Feldmann 2fc10d6d9f Merge branch 'master' into docFix 2019-04-25 09:59:04 +02:00
Oliver Feldmann e566c2bb13 Use admonition for note 2019-04-24 13:50:30 +02:00
Oliver Feldmannandmarcusholl ab392c11ee Remove malignous blank in import statement
Co-Authored-By: marcusholl <marcus.holl@sap.com>
2019-04-01 11:07:05 +02:00
Oliver Feldmann 713a5fe319 Remove return value from mtaBuild docu
There is no return value coming from mtaBuild anymore.
2018-10-24 14:45:37 +02:00
Oliver Feldmann 0a58ad6e1c Deploy mkdocs when merging to master
Only changes to master and PRs starts the travis job.
On PR Maven tests and mkdocs build for warnings and error check is done.
On change on master Maven is **not** run and the documentation is built
and deployed using a deploy key. The encrypted deploy key is not part of
this commit, it needs to be provided by an admin for this repository.
2018-03-12 09:58:32 +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
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
Oliver Feldmann b81ee87218 Merge pull request #37 from o-liver/DocuLink
Correct reference to commonPipelineEnvironment.md
2017-12-14 09:54:05 +01:00
Oliver Feldmann 74f63a1936 Correct reference to commonPipelineEnvironment.md
In configurationLoader.md the reference to commonPipelineEnvironment.md
is wrong and will give you a 404, because commonPipelineEnvironment.md
lies in a separate folder called steps.
The change was already deployed to the gh-pages!
2017-12-13 14:35:23 +01:00
Oliver Feldmann 14e43d9e0e Merge pull request #17 from o-liver/documentation
Documentation overhaul
2017-12-06 14:34:50 +01:00
Oliver Feldmann b4a4f135fa Template overhaul
Step template improvements.
Addition of script template.
2017-12-06 13:24:19 +01:00
Oliver Feldmann 8e70c72ea9 Documentation improvements
Slight improvements on various md files.
Deletion of method-based commonPipelineEnvironment documentation as it
is not used.
2017-12-06 13:24:01 +01:00
Oliver Feldmann 5c37d62343 Merge pull request #19 from o-liver/contributing
Minor changes to CONTRIBUTING.md
2017-12-05 14:39:01 +01:00
Oliver Feldmann 026e0d3f29 Merge pull request #31 from o-liver/executePipeline
Remove node from test pipeline of executePipeline unit tests.
2017-12-05 14:20:47 +01:00
Oliver Feldmann 772fc50b50 Fix CONTRIBUTING.md
Fix some spelling errors.
2017-12-05 14:18:20 +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
Oliver Feldmann b4d17fa929 Documentation for 'centralPipelineLoad' 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
Oliver Feldmann 5d5a82929c centralPipelineLoad step
A more convenient way to checkout the project sources. The idea is to
have a Jenkinsfile in the payload repository that only loads the shared
library and then runs this step. This step in turn loads a Jenkinsfile
from another repository.
The repo url, branch, Jenkinsfile path and credentials ID can be
provided to the step. The Jenkinsfile is first checked out to a
temporary folder, before it is loaded.
The payload repo must include a Jenkinsfile to be loaded with this
approach.
2017-12-04 10:51:42 +01:00