Commit Graph
100 Commits
Author SHA1 Message Date
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 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
Christopher FennerandGitHub 0326dd5f8c add config for CodeClimate code coverage reporting (#363)
* add config for CodeClimate code coverage reporting

* Update .travis.yml

* Update .travis.yml

* generate coverage report

* Update .travis.yml

* Update .travis.yml
2018-11-07 10:25:00 +01:00
Christopher FennerandGitHub cf334f5af2 add badges for code climate (#364) 2018-11-06 14:23:52 +01:00
Christopher FennerandGitHub a13e6d5632 exclude images and key file from Code Climate editorConfig scan (#366)
* Update .codeclimate.yml
2018-11-06 14:04:53 +01:00
Christopher FennerandGitHub f757a0e1d4 fix Markdown issues (#365)
* fix Markdown issue 'Headers should be surrounded by blank lines'

* fix MD012

* fix MD022

* fix MD026

* fix MD007

* fix MD032

* fix MD038

* fix MD040

* fix MD031

* fix MD034

* fix MD004

* fix new findings

* fix MD036

* fix MD038

* fix MD032

* fix MD006
2018-11-06 13:50:09 +01:00
Christopher FennerandOliver Nocon aa5ad1c0d1 dockerExecute: handle stashContent (#332)
* handle stashed content
* add utils
2018-11-05 11:24:25 +01:00
Christopher FennerandGitHub c4993691be fix Code Climate findings (#361)
* fix Code Climate findings

* fix indentation finding for LICENSE file

* remove CodeClimate finding

* ignore cfg/id_rsa.enc

* ignore *.png

* Update .editorconfig
2018-11-05 10:52:37 +01:00
Christopher FennerandGitHub dfd4ed9180 Update .travis.yml 2018-10-26 10:56:21 +02:00
Christopher FennerandGitHub 631e9f8e19 correct condition to handle PRs 2018-10-26 10:55:37 +02:00
Christopher FennerandGitHub a3d1b8532e Update .travis.yml 2018-10-26 10:43:05 +02:00
Christopher FennerandGitHub c3ac22cc64 Merge branch 'master' into CCFenner/stages 2018-10-26 10:31:36 +02:00
Christopher FennerandGitHub f6c62d2017 split travis build into stages 2018-10-25 12:56:32 +02:00
Christopher FennerandGitHub 5a3be2af49 Merge branch 'master' into pr/fixTrailingWhitespaces 2018-10-25 10:42:19 +02:00
Christopher FennerandGitHub 7deb1d11ab add config for Code Climate (#357) 2018-10-25 10:39:08 +02:00
Christopher FennerandGitHub dabbc724ad handlePipelineStepErrors: extract error message to template (#350)
* add template for handleStepErrors

* add tests

* use template

* fix indent

* fix typo

* Update HandlePipelineStepErrorTest.groovy

* Update HandlePipelineStepErrorTest.groovy
2018-10-24 13:36:30 +02:00
Christopher FennerandOliver Nocon 18078b3bdb add sources for code coverage (#349)
* add sources for code coverage
* hand-in mocked script
* remove obsolete test case
2018-10-24 12:09:51 +02:00
Christopher FennerandGitHub 48990bac47 dockerExecute: use docker network to connect sidecar containers (#352)
* use docker network to connect containers

* add container names

* use network-alias instead of name

* Update dockerExecute.groovy

* Update dockerExecute.groovy

* Update dockerExecute.groovy

* Update dockerExecute.groovy

* Update DockerExecuteTest.groovy

* remove obsolete parameter

* Update default_pipeline_environment.yml

* Update DockerExecuteTest.groovy

* Update dockerExecute.groovy

* Update DockerExecuteTest.groovy

* Update dockerExecute.groovy

* update docs
2018-10-24 10:13:28 +02:00
Christopher FennerandGitHub dba20d496c Merge branch 'master' into pr/stepReturnVoid 2018-10-17 11:50:58 +02:00
Christopher FennerandGitHub dc2e5ba856 Update ConfigurationHelper.groovy 2018-10-17 11:27:36 +02:00
Christopher FennerandMarcus Holl 8071071e9d set return type 2018-10-11 09:10:26 +02:00
Christopher FennerandMarcus Holl 01365295cb remove step return types 2018-10-11 09:10:26 +02:00
Christopher FennerandGitHub 3d2bc3f892 add missing parameter (#164) 2018-10-10 12:05:41 +02:00
Christopher FennerandMarcus Holl e0aa95645b remove unnecessary import 2018-10-09 15:25:46 +02:00
Christopher FennerandMarcus Holl 27959e4644 remove unnecessary imports 2018-10-09 15:25:46 +02:00