1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00
sap-jenkins-library/pkg/piperutils
Fabian Reh 586044192c
feat(Gitops): new step to update deployment (#2178)
* kanikoExecute: improve user experience

* ensure proper tags

* update permissions

in case a container runs with a different user
we need to make sure that the orchestrator user
can work on the file

* update permissions

* ensure availablility of directories on Jenkins

* (fix) clean up tmp dir in test

* add resilience for incorrect step yaml

* incorporate PR feedback

* Adds piper step to update deployment configuration in external git repository.

https://github.wdf.sap.corp/ContinuousDelivery/piper-ita/issues/21

* Adds handling of branchName as an optional parameter

* Update resources/metadata/gitopsUpdateDeployment.yaml

Feedback about description

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

* Adapt to interface guide

* Refactors to GitopsExecRunner

* Refactors to GitopsExecRunner in test

* Removes unnecessary mocked methods

* Adds tests for git utils

* Adds new step to CommonStepsTest.groovy

* Updates description from yaml

* Restricts visibility of methods and interfaces
Adds comments where necessary

* Updates comments

* Fixes URL name

* updates description

* updates generated file

* Fixes compile issue in CommonStepsTest.groovy

* Updates long description

* Updates test to run green on all kind of OS

* Removes global variables from tests

* Default branch: master

Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>

* Typo in Hierarchy

Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>

* Refactors test to allow parallel execution

* Renames utility variable in gitopsUpdateDeployment.go

* Renames error variables in gitopsUpdateDeployment.go

* simplified parameters for kubectl

* Refactors util classes to use parameters rather than global variables

* makes username and password mandatory

* remove unnecessary mandatory flag

* remove new methods from mock that are not necessary

* replaces with EqualError

* replaces with NoError

* update generated file

* refactor tests

* refactor tests

* make tests parallel executable

* parallel execution of tests

* Refactors interfaces to stop exposing interfaces

* Feedback from PR

* Simplifies failing mocks

* Renames variables and interfaces

* Fixes error messages

* shorten variable names

* Renames unused parameters in tests

* Cleanup nil parameters

* Typo

* Wrap errors and remove unnecessary logs

* Remove containername and filePath from GENERAL scope

* correct generated file

* corrects expected error messages

Co-authored-by: OliverNocon <oliver.nocon@sap.com>
Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
2020-10-20 09:05:17 +02:00
..
testdata Fortify implementation in golang (#1428) 2020-05-25 19:48:59 +02:00
fileUtils_test.go Improve self-consistency of file system mock (#1815) 2020-07-20 14:23:33 +02:00
FileUtils.go feat(Gitops): new step to update deployment (#2178) 2020-10-20 09:05:17 +02:00
projectStructure_test.go Add functions to infer build tool (#1210) 2020-02-23 16:54:50 +01:00
projectStructure.go Add functions to infer build tool (#1210) 2020-02-23 16:54:50 +01:00
slices_test.go whitesourceExecuteScan: bypass UA for mta, maven, npm and yarn (#1879) 2020-09-29 12:44:31 +02:00
slices.go whitesourceExecuteScan: bypass UA for mta, maven, npm and yarn (#1879) 2020-09-29 12:44:31 +02:00
stepResults_test.go chore(go): simplify code using gofmt -s (#2065) 2020-09-24 08:58:53 +02:00
stepResults.go fix: improve stepResults handling (#1425) 2020-04-20 16:18:49 +02:00
templateUtils_test.go Fortify implementation in golang (#1428) 2020-05-25 19:48:59 +02:00
templateUtils.go fix(typo): found by misspell (#2064) 2020-09-24 07:41:06 +02:00