Commit Graph
100 Commits
Author SHA1 Message Date
Christopher FennerandGitHub d627b39ba0 fix(mta): update docker image to fix npm.sap.com ssl issue (#1021)
* fix(mta): update docker image to fix npm.sap.com ssl issue

see https://github.com/SAP/cloud-mta-build-tool/issues/611
2019-11-29 10:03:24 +01:00
Christopher FennerandFlorian Wilhelm 4766f102c3 fix(mta): use updated container with provided grunt-cli (#1009) 2019-11-28 09:10:03 +01:00
Christopher FennerandGitHub 174d24460c chore(go): add pre-commit hook (#1006)
* chore(go): add pre-commit hook
run go mod tidy
add description

* use bash

* adjust indentation

* fix code climate issue

* docs: clarify git hook usage description

* Update .hooks/README.md
2019-11-27 21:16:01 +01:00
Christopher FennerandGitHub d57e506217 docs(sonar): update sonar docs (#1015)
as SonarQube LTS has now moved to v7.9
2019-11-27 08:41:02 +01:00
Christopher FennerandGitHub 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
Christopher FennerandGitHub 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
Christopher FennerandGitHub 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
Christopher FennerandGitHub a89361449e sonarExecuteScan: update to Sonar scanner 4.2.x (#820)
* Update to Sonar scanner 4.x.x

* switch to sonar-scanner 4.2.0
2019-11-13 09:24:36 +01:00
Christopher FennerandGitHub 7466ae43af fix: sonar PR voting (#971)
* unstash git files into container

* use CHANGE_BRANCH

* adapt env variables
2019-11-12 17:17:44 +01:00
Christopher FennerandGitHub de465f2e20 fix: correct ldflags (#969) 2019-11-11 16:38:25 +01:00
Christopher FennerandGitHub 2bb400910a assign library field in logger with respect of containing repository (#968)
* set loggers library entry to repository url

* remove comment
2019-11-11 15:31:02 +01:00
Christopher FennerandGitHub ae221a8ea7 Merge branch 'master' into goGithub 2019-11-06 12:28:48 +01:00
Christopher FennerandOliver Nocon 742a67fc60 Add GO logging with logrus (#938)
* add log package
* add logrus dependency
* add logging to karma step
* add log stepName to generator, respect verbose flag
2019-11-04 14:43:33 +01:00
Christopher FennerandGitHub f3f4c741be sonarExecuteScan: add custom certificate support (#819)
* feat(sonar): load TLS certificates

* allow verbose property

* handle whitespaces

* cleanup

* disable default verbosity on wget

* correct test file name

* add test case for custom certificates

* import StandardCharsets

* change cleanup

* correct pull-request provider name

* correct pull-request provider name

* correct pull-request provider name
2019-08-11 22:42:34 +02:00
Christopher FennerandGitHub 7845e18f4d fix NonCPS issues (#796)
* remove NonCPS statement

* remove NonCPS anntotation

* fix typo

* remove NonCPS anntotation

* remove NonCPS anntotation

* remove NonCPS anntotation

* remove NonCPS anntotation

* remove NonCPS anntotation

* remove Iterable

* remove mixins

* add mixins

* add mixins 2

* add mixins 3

* add NonCPS anntotation

* remove tokenize

* remove closure

* remove closure

* replace closure

* use Object

* use Object

* use Object

* remove object

* remove object

* add logic

* change type

* change type

* remove NonCPS anntotation

* remove NonCPS anntotation

* add import
2019-07-29 10:17:56 +02:00
Christopher FennerandGitHub 5bf7cda940 add new step piperPublishNotifications (#652)
* add new step for notification publication

* add test cases

* add helper method

* correct import

* Update pom.xml

* add step to post section

* add step piperPublishNotifications

* move step to end of pipeline to gather all findings

* use handlePipelineStepErrors step

* use commonPipelineEnvironment

* correct reporting

* add configuration

* fix typos

* fix rule setup

* remove test scope

* add method to fetch full build log

* add methods for warnings-ng parser creation

* remove warnings plugin coding

* add default parser settings

* change parameter handling for parser creation

* adapt step

* fix parser creation

* use ParserConfig.contains

* use correct parameter name

* correct parser regex

* change issue creation

* use classloader

* fix typo

* Revert "fix typo"

This reverts commit 446a201ae4.

* Revert "use classloader"

This reverts commit a896487032.

* rename step to piperPublishWarnings

* extract recordIssuesSettings to defaults

* make addWarningsNGParser non-static

* remove node

* adjust test case

* add docs

* rename log file

* fix tests

* fix typos

* rename parameter

* add import for IOUtils

* check plugin activation

* add comment for class loader usage
2019-07-18 12:09:54 +02:00
Christopher FennerandGitHub 4148652271 dockerExecuteOnKubernetes: hand ON_K8S env var down into container (#778)
* hand ON_K8S env var down into container

* fix Sonar findings

* add ON_K8S to SystemEnv

* remove ON_K8S handling from step
2019-07-04 13:46:27 +02:00
Christopher FennerandOliver Nocon 52ad001917 Update piperStageWrapper.groovy (#767) 2019-06-27 10:53:46 +02:00
Christopher FennerandGitHub 93e1796455 karmaExecuteTests: fix multi module execution (#765)
* add test case for multi module execution

* fix multi module issue
2019-06-24 15:29:32 +02:00
Christopher FennerandGitHub 68c657b2c1 Update handlePipelineStepErrors.groovy (#743) 2019-06-17 12:23:36 +02:00
Christopher FennerandGitHub a6e11e7fd3 add HaDoLint to docs (#744) 2019-06-06 13:52:20 +02:00
Christopher FennerandGitHub 816256c266 Merge branch 'master' into pr/resolvePlugins 2019-05-22 11:27:58 +02:00
Christopher FennerandMarcus Holl 41ee87d147 fix code climate issues II (#715)
* fix code climate issues

* fix code climate issues

* fix code climate issues
2019-05-21 15:33:05 +02:00
Christopher FennerandGitHub 77e344d181 fix code climate issues II (#715)
* fix code climate issues

* fix code climate issues

* fix code climate issues
2019-05-17 13:20:13 +02:00
Christopher FennerandGitHub 3a3b15e9ba Merge branch 'master' into pr/inlineRules 2019-05-16 11:35:22 +02:00
Christopher FennerandGitHub 4d9a4dbc6f Merge branch 'master' into pr/docuFixNullValues 2019-05-16 11:07:26 +02:00
Christopher FennerandGitHub 6d5fdd41bf fix code climate issues (#712)
* fix code climate issues

* fix code climate issues

* Update GitUtils.groovy
2019-05-16 10:46:13 +02:00
Christopher FennerandGitHub 9db487d189 move method to MapUtils (#709)
* move method to MapUtils

* use MapUtils

* fix indent

* Update src/com/sap/piper/MapUtils.groovy

* Update MapUtils.groovy

* remove obsolete test case

* fix typo
2019-05-15 20:52:45 +02:00
Christopher FennerandGitHub 960609376d Merge branch 'master' into pr/docuFixNullValues 2019-05-15 15:26:01 +02:00
Christopher FennerandGitHub 2fed3f231f Merge branch 'master' into pr/DoNotReturnWrongValueIfOnlyAPartOfAPathCanBeResolved 2019-05-15 10:16:09 +02:00
Christopher FennerandGitHub c52d1ceb0d add Sonar docs link (#704) 2019-05-14 10:59:52 +02:00
Christopher FennerandGitHub c8f9db71eb add step for Sonar scan (#183)
* add new step sonarExecute

* simplify list

* add general credentials for SonarQube

* Update default_pipeline_environment.yml

* Update sonarExecute.groovy

* correct worker invocation

* switch step/stage config order

* add tests

* add webhook handling

* Update default_pipeline_environment.yml

* use withMandatoryProperty with condition

* Update ConfigurationHelper.groovy

* Update sonarExecute.groovy

* Update ConfigurationHelper.groovy

* rename step to sonarExecuteScan

* rename step to sonarExecuteScan

* rename step to sonarExecuteScan

* Update sonarExecuteScan.groovy

* change return type

* Update sonarExecuteScan.groovy

* stash

* update defaults

* update install path

* use quiet unzip

* use long option names

* optimize filename retrival

* rework PR voting

* fix path

* remove accitentially checked-in file

* add documentation, optimise coding

* correct test case

* add documentation

* remove option prefix

* rename config variable

* update docs

* update docs

* rename download url

* fix typo

* adjust test cases

* add test cases

* update docs
2019-05-13 12:29:07 +02:00
Christopher FennerandGitHub 8a55e25f72 add Slack notification to Init and Post stage (#691)
* add Slack notification to post stage

* add Slack notification to init stage

* add trigger condition for Slack notification

* fix whitespaces

* use capital stage name

* add tests for init stage

* remove unused import

* add tests for post stage

* minor changes

* fix typo
2019-05-10 06:47:44 +02:00
Christopher FennerandOliver Nocon b66d95fb1c improve Slack setup documentation (#687) 2019-05-08 10:17:44 +02:00
Christopher FennerandGitHub e8f206b1a1 piperPipeline: add extensible post stage (#661)
* add post stage

* use post stage in template

* adjust test cases

* add docs skeleton

* add documentation

* Update piperPipelineStagePost.md
2019-05-02 12:26:28 +02:00
Christopher FennerandGitHub eacec4279d piperPipeline: handle build result correctly (#660)
* add new step buildSetResult

* set pipeline result in post stage

* exclude buildSetResult from commonStepTests

* extend pipeline test

* remove post stage reference
2019-04-15 14:18:08 +02:00
Christopher FennerandGitHub dccaa780fc cloudFoundryDeploy: return proper error message on deploy error (#651)
* return proper error message on deploy error

* fix typo

* provide meaningful error messages

* Update cloudFoundryDeploy.groovy

* Update cloudFoundryDeploy.groovy

* Update neoDeploy.groovy

* Update neoDeploy.groovy
2019-04-12 09:07:53 +02:00
Christopher FennerandGitHub e67b9cff23 influxWriteData: hold data in dedicated object (#624)
* add InfluxData object

* add InfluxData rule

* use InfluxData

* include jenkins_custom_data into InfluxData object

* correct typo

* add missing import

* fix condition for influx reporting

* add test class

* Update influxWriteData.groovy
2019-04-11 11:39:41 +02:00
Christopher FennerandGitHub 1195501d22 push correct docs folder (#654) 2019-04-10 13:49:40 +02:00
Christopher FennerandGitHub 39bc7b043c Travis: use GHPages deploy provider (#645)
* remove GHDeploy script

* build MKDocs from docs folder

* use GHDeploy provider
2019-04-10 12:26:54 +02:00
Christopher FennerandGitHub e90ffa6bf5 commonPipelineEnvironment: add propertiesMap (#526)
* add customPropertiesMap

* migrate transportRequestId to customPropertiesMap

* migrate transportRequestId to customPropertiesMap

* fix typo

* rename map

* rename method due to name clash
2019-04-10 10:56:36 +02:00
Christopher FennerandGitHub 5c13a0e2a2 fix docs generation (#643) 2019-04-05 15:31:29 +02:00
d2a615fbc3 Update vars/healthExecuteCheck.groovy
Co-Authored-By: alejandraferreirovidal <alejandra.ferreiro.vidal@sap.com>
2019-04-02 21:01:09 +02:00
Christopher FennerandGitHub 2369573f14 web analytics: use httpRequest step (#587)
* change reporting to use httpRequest step

* Update TelemetryTest.groovy

* adapt tests

* remove import

* avoid NonSerialisableException on HashMap.Entry

* Update Telemetry.groovy

* decrease timeout to 10 seconds

* remove null check

* make helper method static

* fix codeclimate issues
2019-03-28 11:54:45 +01:00
Christopher FennerandGitHub 0e7ef41fab newmanExecute: generate documentation (#591)
* generate docs for newmanExecute step

* fix typo
2019-03-26 13:26:21 +01:00
Christopher FennerandGitHub f8c8e81958 generate docs for slackSendNotification step (#592) 2019-03-26 12:14:29 +01:00
Christopher FennerandGitHub f138ae1499 mailSendNotification: generate documentation (#584) 2019-03-25 14:34:48 +01:00
Christopher FennerandGitHub 208e1a4241 influx: report build link to measurements 'step_data' and 'pipeline_data' (#585) 2019-03-21 20:23:23 +01:00
Christopher FennerandGitHub 80d288ae57 handlePipelineStepError: use ConfigurationHelper (#556)
* use ConfigurationHelper in handlePipelineStepError

* externalise help url
2019-03-20 11:21:06 +01:00
Christopher FennerandGitHub 7177954e80 seleniumExecuteTests & uiVeri5ExecuteTests: improve documentation (#568)
* generate docs for seleniumExecuteTests

* inherit docs for uiVeri5ExecuteTests

* add description for failOnError
2019-03-19 15:38:52 +01:00
Christopher FennerandGitHub 60cbd2cd57 seleniumExecuteTests: fix type (#569) 2019-03-19 12:07:05 +01:00
Christopher FennerandGitHub 7069f29ec5 snykExecute: add missing documentation (#570)
* add docs for snykExecute

* add link to new docs page
2019-03-18 11:08:41 +01:00
Christopher FennerandGitHub 851e98aef8 handlePipelineStepErrors: add error data to influx measurement (#563) 2019-03-14 13:51:00 +01:00
Christopher FennerandGitHub 4953a894c5 uiVeri5ExecuteTests: add testServerUrl (#543) 2019-03-13 17:45:41 +01:00
Christopher FennerandOliver Nocon 6d7205377c generate karma docs (#555) 2019-03-13 12:01:05 +01:00
Christopher FennerandGitHub 57911a5835 Merge branch 'master' into pr/fixStageDoc 2019-03-12 11:26:42 +01:00
d000c25add Update vars/whitesourceExecuteScan.groovy
Co-Authored-By: nevskrem <33895725+nevskrem@users.noreply.github.com>
2019-03-06 13:11:05 +01:00
ebbc373d56 Update vars/whitesourceExecuteScan.groovy
Co-Authored-By: nevskrem <33895725+nevskrem@users.noreply.github.com>
2019-03-06 13:10:49 +01:00
39ef78c219 Update vars/whitesourceExecuteScan.groovy
Co-Authored-By: nevskrem <33895725+nevskrem@users.noreply.github.com>
2019-03-06 13:10:31 +01:00
4a05b317b3 Update vars/whitesourceExecuteScan.groovy
Co-Authored-By: nevskrem <33895725+nevskrem@users.noreply.github.com>
2019-03-06 13:07:55 +01:00
Christopher FennerandGitHub 2094d95fcc fix indentation 2019-03-01 15:35:08 +01:00
Christopher FennerandGitHub 9ebce31fe6 influxWriteData: use org/repo as default prefix (#534) 2019-02-28 08:45:44 +01:00
Christopher FennerandGitHub 2817efa2ed prepareDefaultValues: streamline logs 2019-02-28 07:06:46 +01:00
Christopher FennerandGitHub d657f0dc28 testsPublishResults: add option to fail the build on test errors (#472)
* add option to fail the build on test errors

* fix typo

* add test cases

* adjust docs

* set build result

* add hasTestFailure utils method

* use utils method

* use dedicated type

* adapt tests

* handle missing test actions

* Update testsPublishResults.md

* Update JenkinsUtils.groovy

* Update JenkinsUtils.groovy

* Update JenkinsUtils.groovy

* remove comments

* adapt test case

* Update TestsPublishResultsTest.groovy
2019-02-08 12:30:59 +01:00
Christopher FennerandGitHub 3f12015364 dockerExecuteOnKubernetes: generate documentation (#487)
* fix whitespace

* correct key order

* add docs annotation

* add key documentation

* remove generated documentation

* fix code climate finding
2019-02-08 12:20:45 +01:00
Christopher FennerandGitHub 887c8d0186 Merge branch 'master' into pr/seeAnnotationInDocu 2019-02-06 10:07:57 +01:00
Christopher FennerandGitHub 1f6646e5cc Merge branch 'master' into pr/allowSingleLineDocuComments 2019-02-05 13:39:02 +01:00
Christopher FennerandGitHub 08d62eb303 Merge branch 'master' into pr/seeAnnotationInDocu 2019-02-04 14:39:00 +01:00
Christopher FennerandGitHub d91fa6d29d Merge branch 'master' into pr/allowSingleLineDocuComments 2019-02-04 14:38:22 +01:00
Christopher FennerandGitHub bd32367c31 dockerExecute: generate docs (#480)
* correct key order

* add docs annotation and description

* describe parameters

* remove generated content from doc

* fix indent

* add further decumentations
2019-02-04 14:35:44 +01:00
Christopher FennerandGitHub 8a9fb6aef7 Merge branch 'master' into pr/seeAnnotationInDocu 2019-02-04 09:04:23 +01:00
Christopher FennerandGitHub ba2e83c76a dockerExecuteOnKubernetes: correct parameter keys (#475)
* Update dockerExecuteOnKubernetes.groovy

* Update dockerExecute.groovy

* Update dockerExecuteOnKubernetes.groovy
2019-02-04 09:03:58 +01:00
Christopher FennerandGitHub bca5b8ccf1 Add step uiVeri5ExecuteTests (#469)
* add defaults for uiVeri5 step

* add step and tests

* correct parameter names

* add empty docs

* add docs annotations

* remove not needed parameter

* add docs annotations
2019-01-31 09:16:34 +01:00
Christopher FennerandGitHub fbb9cbeb3c Update dockerExecuteOnKubernetes.groovy (#474) 2019-01-31 08:49:31 +01:00
Christopher FennerandGitHub def66f4ffa extend Analytics (#439)
* add extension mechanism for analytics

* add sha1 hashing

* correct return types

* correct registerEventListener method

* decrese visibility of createInstance

* correct typo

* catch exceptions from tests

* correct test case

* Update Analytics.groovy

* rename to Telemetry

* rename file

* fix typo

* add test case for generateSha1

* expose methods to tests

* add clear method for tests

* change return type

* add test for Telemetry class

* replace UtilsTests

* remove unused imports

* make default reporter static

* add stage parameters to payload

* simplify SHA1 method

* remove obsolete method

* remove obsolete methods

* remove outdated tests
2019-01-30 12:39:33 +01:00
Christopher FennerandGitHub 1c9eed993b Merge branch 'master' into pr/removeNeoCredentialsCheck 2019-01-30 10:46:06 +01:00
Christopher FennerandGitHub 152c0e3682 Merge branch 'master' into pr/betterReadableRuleNames 2019-01-23 16:53:52 +01:00
Christopher FennerandGitHub 8f513fb68b add config reporting (#459) 2019-01-23 12:51:46 +01:00
Christopher FennerandGitHub 6224d2aece influxWriteData: catch NPE (#434)
* Update influxWriteData.groovy

* Update influxWriteData.groovy

* Update influxWriteData.groovy
2019-01-21 14:12:05 +01:00
Christopher FennerandGitHub 10267ce7d1 Analytics: add step parameter keys (#442)
* add stepParamKey values

* camelCase
2019-01-21 08:47:34 +01:00
Christopher FennerandGitHub f6647d9ce5 newmanExecuteTests: use user-specific .npm-global directory (#447)
* use user-specific .npm-global directory

* Update newmanExecute.groovy

* fix typo

* Update NewmanExecuteTest.groovy

* Update NewmanExecuteTest.groovy
2019-01-18 13:14:39 +01:00
Christopher FennerandGitHub 2cbaeff8f4 Merge branch 'master' into pr/organizeImports 2019-01-18 10:02:10 +01:00
Christopher FennerandMarcus Holl 1baa1f14cb remove trailing line break 2019-01-18 08:57:54 +01:00
Christopher FennerandMarcus Holl 4f804f8876 remove trailing line breaks 2019-01-18 08:57:54 +01:00
Christopher FennerandGitHub f988c908ce Travis: remove reporting to coveralls (#443)
* remove coveralls reporting

* remove badge

* remove plugin dependency
2019-01-17 09:23:21 +01:00
Christopher FennerandOliver Nocon 3cb70a2a48 clean influx docs (#431) 2019-01-11 16:40:31 +01:00
Christopher FennerandOliver Nocon caf54b0e68 docs: add reference to newman page (#430) 2019-01-11 08:02:30 +01:00
Christopher FennerandGitHub d303e49ebe add newman doc (#399) 2018-12-10 11:53:48 +01:00
Christopher FennerandGitHub 71b66e8645 correct Code Climate config (line length) (#374)
* deactivate MD013 - line length

* correct rule deactivation

* Update .codeclimate.yml
2018-12-10 11:43:09 +01:00
Christopher FennerandGitHub aadba46083 pipelineStashFiles: resolve STEP_NAME in log message (#391)
* resolve STEP_NAME in log message

* resolve STEP_NAME in log message
2018-11-20 16:03:07 +01:00
Christopher FennerandGitHub ddc40044a2 karmaExecuteTests: extend default proxy excludes and stashes (#389)
* extend default proxy excludes

* Update karmaExecuteTests.md
2018-11-19 10:54:14 +01:00
Christopher FennerandGitHub 3c86a3c54d add missing script (#377)
fixes #376
2018-11-09 07:42:33 +01:00
Christopher FennerandGitHub 48e58f04d1 deactivate MD013 - line length (#367) 2018-11-08 13:47:32 +01:00
Christopher FennerandGitHub 9acc28f10f add missing script (#373) 2018-11-08 13:25:11 +01:00
Christopher FennerandGitHub 9a1ab37c0b add new step karmaExecuteTests (#351)
* add new step for karma execution

* add defaults

* Update karmaExecuteTests.groovy

* add key comments

* add test case

* docs

* add step docs

* add step docs

* Update karmaExecuteTests.md

* complete docs

* Update karmaExecuteTests.md

* init `script` the "new way"

* Update karmaExecuteTests.groovy

* Update karmaExecuteTests.groovy
2018-11-08 12:15:15 +01:00
Christopher FennerandGitHub e487ad5055 disable download logs in maven (#370) 2018-11-07 13:08:24 +01:00
Christopher FennerandGitHub 87bc3e9b96 run docs build for PRs in parallel to unit tests (#371) 2018-11-07 12:05:28 +01:00
Christopher FennerandGitHub 33758e0e81 Merge branch 'master' into pr/cleanWorktreeCheck 2018-11-07 11:47:56 +01:00
Christopher FennerandGitHub 10ec0473c1 correct step invokation in tests (#368)
* correct step invokation in tests

* correct step invokation in tests

* correct step invokation in tests
2018-11-07 11:45:38 +01:00
Christopher FennerandGitHub ce362f4ae9 correct usage of commonPipelineEnvironment (#369) 2018-11-07 11:37:18 +01:00