Commit Graph
2619 Commits
Author SHA1 Message Date
Christopher Fenner 96439972e2 docs: show possible values in step documentation (#1453)
* add possibleValues to model

* include possible values into docs
2020-04-24 14:13:02 +02:00
Christopher Fenner 2100632b54 docs: omit <nil> in parameter table (#1450)
* omit <nil> in parameter table

* adjust test case
2020-04-24 11:21:33 +02:00
974327d16e Use mavenExecute from go (#1388)
Also establish mavenExecute() via new JenkinsMavenExecuteRule in Groovy Unit Tests.

Co-authored-by: Stephan Aßmus <stephan.assmus@sap.com>
Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
2020-04-24 10:41:49 +02:00
b335387eac feat(k8s): Add basic support for Helm 3 in kubernetesDeploy step (#1438)
* Extends kubernetesDeploy step to support Helm 3

Currently, the kubernetesDeploy step has no support to Helm 3 due to the fact that:
- the initialization command used works only for Helm 2
- the image used when running the helm CLI is based on Helm 2

The need for Helm 3 support comes from the fact that Helm 3 introduces major architectural changes,
more specifically, the removal of its server-side agent called Tiller - thus, being incompatible with
one another.

This commit adds this support by introducing a new configuration field (helmVersion).
By default, its values is set to 2 (Helm 2) to avoid breaking any existing functionalities.

* Use deployTool field to decide between Helm 2 or 3

* Remove helm init and replace wait for atomic in v3

* Update cmd/kubernetesDeploy.go

Nice catch!

Co-Authored-By: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>

* Add documentation for kubernetesDeploy step

* Add helm3 example for kubernetesDeploy step using mandatory fields

* Add new line at the end of kubernetesDeploy documentation

* Link kubernetesDeploy step with docs generator

* Add possible values for deployTool in kubernetesDeploy

* dummy change

* Revert "dummy change"

Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
2020-04-24 09:37:11 +02:00
Christopher Fenner b942dcd954 fix(telemetry): correct source URL for web reporting (#1444) 2020-04-23 14:33:06 +02:00
artembannikovandMarcus Holl 8206fb9716 TMS: Print response content for status codes 3xx in addition to 4xx and 5xx (#1441)
* Extend JenkinsLoggingRule and TransportManagementServiceTest

* Print response content for status codes >= 300, also test that it's not
revealed in the case of unexpected status codes between 200 and 300
(both not included) for authentication

Co-authored-by: Marcus Holl <marcus.holl@sap.com>
2020-04-23 09:46:25 +02:00
Marcus HollandStengel b25079f862 Provide tooling for malware scanning (#1329)
Tooling for malwareScanning.

Co-authored-by: Stengel <r.stengel@sap.com>
2020-04-23 09:12:10 +02:00
Hans SchulzandOliver Nocon 5c27a717c3 Make smoke test of blueGreen deployment optional (#1394)
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2020-04-22 21:59:14 +02:00
Daniel Kurzynski 689976c892 Document mavenBuild (#1439) 2020-04-22 16:43:10 +02:00
Daniel Kurzynski 168b82b92c Fix integration tests on master (#1440) 2020-04-22 16:41:43 +02:00
Daniel Kurzynski 76d24e560e Fix documentation generation for cloud foundry (#1420) 2020-04-22 11:50:30 +02:00
Daniel Kurzynski a37ef48570 Document new identifier (#1392) 2020-04-22 11:25:51 +02:00
Daniel Kurzynski 52822ded5e Log command which is executed (#1300) 2020-04-22 11:06:00 +02:00
Daniel Kurzynski 9bf8e60ba0 Run integration tests on github action instead of travis (#1402) 2020-04-22 10:35:13 +02:00
Christopher Fenner f655c07a92 fix(sonar): do not fail on missing task report file (#1436)
* fix(sonar): do not fail on missing task report file

* fix format
2020-04-21 22:47:38 +02:00
Christopher FennerandStephan Aßmus 989c47db2c feat(sonar): extract sonar project link to report JSON (#1390)
* add test cases for sonar pkg

* add sonar pkg

* read task report and write reports JSON

* use alias

* rename type

* set read permission on created files

* archive reports

* handle empty report lists

* use filepath

* simplify report creation

* improve error message

* Revert "archive reports"

This reverts commit ba4b56fec1.

* improve test cases

* Add descriptions

Co-Authored-By: Stephan Aßmus <stephan.assmus@sap.com>

* improve tests

Co-Authored-By: Stephan Aßmus <stephan.assmus@sap.com>

Co-authored-by: Stephan Aßmus <stephan.assmus@sap.com>
2020-04-21 15:45:52 +02:00
Florian Wilhelmandgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> c9cc2e1d30 Automated go dependency update (#1423)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2020-04-21 09:16:08 +02:00
Oliver Nocon 75a10742d3 Step generator: correct error handling (#1429)
Do not exit with os.Exit(1) but using log.Entry().Fatal() instead
2020-04-20 16:52:57 +02:00
Oliver Nocon 3a9bc54711 protecodeExecuteScan - align user parameter (#1426)
align parameter name for scan user with other steps
2020-04-20 16:44:01 +02:00
Christopher Fenner 57f5e436a6 fix: improve stepResults handling (#1425)
* set read permission on created files

* handle empty report lists

* remove test output

* remove duplicate asserts

* remove unnecessary asserts
2020-04-20 16:18:49 +02:00
Christopher Fenner 46bee01ab9 chore: cache .m2 directory during groovy tests (#1419)
* chore: cache .m2 directory during groovy tests

* rename workflow job
v1.23.0
2020-04-17 21:29:48 +02:00
Christopher Fenner 171a063590 chore: add gh-action to generate docs (#1386)
* add workflow to generate docs

* Update documentation.yaml

* Update createDocu.sh

* add caching

* fix c&p error

* Update documentation.yaml

* Update documentation.yaml

* remove docs build from travis

* activate workflow for PRs
2020-04-17 17:44:31 +02:00
Roland StengelandChristopher Fenner 5e2b2481c3 tests(sonar): fix test cases for windows (#1407)
* sonar: fix test cases

some unit tests uses path.Joint() instead of filepath.Join()
as the code does. on window these unit tests fail.

* missing newline

* Update cmd/sonarExecuteScan_test.go

Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
2020-04-17 15:01:22 +02:00
Oliver Nocon 067eb0ba6a Improve error messages for test failures (#1417) 2020-04-17 11:59:51 +02:00
Daniel Kurzynski 1c247de9d0 Add option to always run stages in a pod (#1414) 2020-04-17 10:31:04 +02:00
Stephan AßmusandDaniel Kurzynski a09482a14f Convert invalid config value types (#1408)
Co-authored-by: Daniel Kurzynski <daniel.kurzynski@sap.com>
2020-04-17 10:29:18 +02:00
Florian Wilhelm 6d7ab39e29 Use specific token for automated go dependency update PR (#1413) 2020-04-16 17:58:59 +02:00
Daniel Kurzynski 0e4bff7aa6 Configure default jenkins agent for kubernetes (#1412) 2020-04-16 15:08:09 +02:00
Daniel Kurzynski ce4be51362 Mask secrets (#1382) 2020-04-16 14:37:45 +02:00
Oliver Nocon 4061881b53 UIVeri5 & Newman: provide better error messages (#1410) 2020-04-16 09:14:39 +02:00
Oliver NoconandStephan Aßmus bd0eed30ff stageWrapper: new error handling (#1401)
* handlePipelineStepErrors: allow disabling for stages
* update error handling in stages
* move file loading into try catch
* Cleanup DebugReport before test

Apparantly, the same DebugReport instance is loaded
during all Unit Tests. Avoid left-overs from previous
tests.

Co-authored-by: Stephan Aßmus <stephan.assmus@sap.com>
2020-04-15 14:02:41 +02:00
Oliver Nocon b9781ce50c artifactPrepareVersioning: support more buildTools (#1367)
* artifactPrepareVersioning: support more buildTools
2020-04-15 13:12:43 +02:00
Akshay Iyyadurai BalasundaramandChristopher Fenner 1068de9582 Update update-go-dependencies.yaml (#1399)
Proposing to update the Git config so that commits from GitHub Action bot will be recognized by GitHub.

Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
2020-04-15 09:38:09 +02:00
Christopher Fenner 70c000338f fix: read config.yaml and config.yml in getConfig command (#1400) 2020-04-14 18:10:56 +02:00
Florian Wilhelm 4028db18f7 Automate go dependency updates (#1393) 2020-04-14 12:33:18 +02:00
Kevin Hudemann 462a403d5c Add documentation for the lint stage of Cloud SDK Pipeline (#1384)
This change adds documentation for the new behavior and capabilities of
the lint stage of the Cloud SDK Pipeline.
2020-04-14 10:18:07 +02:00
Florian Wilhelm b71ff0a055 Extend nexusUpload to also handle npm (#1379) v1.22.0 2020-04-11 12:56:44 +02:00
Daniel Kurzynski 0740cbe328 Use new piper identifier in tests (#1391) 2020-04-11 12:27:27 +02:00
dominiklendleandOliver Nocon 66636d68f9 Hotfix for ServiceKey config parameter (#1377)
Changed from passing config as an array that was implemented badly to correct implementation that JSON config gets passed with ' '

Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2020-04-09 16:57:50 +02:00
Christopher FennerandFlorian Wilhelm b0144614e5 improve error message when parsing config (#1387)
* improve error message when parsing config

* adjust test case

Co-authored-by: Florian Wilhelm <florian.wilhelm02@sap.com>
2020-04-09 13:40:04 +02:00
Daniel Kurzynski 6d5b634278 Prepare consumer tests for being tested in Actions (#1369) 2020-04-09 13:04:10 +02:00
Daniel Kurzynski b32214ee78 Inherit from Kubernetes pod template (#1361) 2020-04-08 19:54:06 +02:00
Christopher Fenner 3308243685 fix: add stash for pipeline custom defaults (#1381) 2020-04-08 16:00:02 +02:00
Christopher FennerandOliver Nocon c190deee44 refactor(sonar): switch to Sonar scan in GO (#1320)
* use sonar go in groovy

* use SONAR_TOKEN

* only use owner/repo if both are set

* trim version to major version digit

* fix code climate issues

* remove Sonar defaults

* use sonar go step

* use SONAR_TOKEN

* use certs from parameters

* use docker workspace & options

* add instance parameter

* implement branchName

* implement branchName

* remove duplicate default

* update docs

* fix TODOs

* remove merge mess

* fix code climate issue

* address comments

* respect custom defaults and custom config file name

* fix typo

* remove obsolete test cases

* disable CommonStepChecks

* check step config instead of context config

* remove TODOs

* respect jenkins PR envvars

* use value from stepConfig

* Update vars/sonarExecuteScan.groovy

* rename options to config

* correct type for options

* add test cases

* log sonar.options in debug message

Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2020-04-08 12:55:46 +02:00
Daniel MiegandOliver Nocon bbaaef97ea Include Transport & Execution Log in abapEnvironmentPullGitRepo() (#1347)
* Add logs and ABAP error messages

* Improve functions and tests

* Add improvements

* Further improvements

* Check for empty string for repositoryName

* Small adaptions

* Fix tests

* Add comments

Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
2020-04-08 12:43:41 +02:00
Daniel Kurzynski a3c18d403f Allow MEMBERs to trigger integration tests (#1376) 2020-04-08 11:43:24 +02:00
Daniel Kurzynski 0c70ddbbf2 Allow MEMBERs to trigger integration tests (#1375) 2020-04-08 11:33:17 +02:00
Daniel Kurzynski 56b76dfad5 Trigger integration test with command (#1368) 2020-04-08 10:33:41 +02:00
Oliver NoconandChristopher Fenner ef99f710ae artifactPrepareVersion: documentation (#1365)
* artifactPrepareVersion: documentation

* Fix CodeClimate finding

* Update generated file

* Update versioning.yaml

* Update docs wrt PR 1374

* update generated step

* Update resources/metadata/versioning.yaml

Co-Authored-By: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>

* Update resources/metadata/versioning.yaml

Co-Authored-By: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>

* update generated file

Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
2020-04-08 09:28:03 +02:00
artembannikovandMarcus Holl 4553c8f278 TMS: explicitly check in tests that there is no token in the logs (#1370)
* Check in the tests explicitly that token is not present in logs

* Address feedback

Co-authored-by: Marcus Holl <marcus.holl@sap.com>
2020-04-07 15:42:38 +02:00