1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00
sap-jenkins-library/vars
Holger Partsch 94957e2b54 Make K8S integration more configurable (#552)
* Define pod using k8s yaml manifest

The Kubernetes plugin allows to define pods directly via the Kubernetes
API specification:
https://github.com/jenkinsci/kubernetes-plugin#using-yaml-to-define-pod-templates

This has the advantage of unlocking Kubernetes features which are not
exposed via the Kubernetes plugin, including all Kubernetes security
featues.

Using the Kubernetes API directly is also better from development
point of view because it is stable and better desgined then the API the
plugin offers.

* Make the Kubernetes ns configurable

If one Jenkins Master is used by multiple Teams, it is desirable to
schedule K8S workloads in seperatae workspaces.

* Add securityContext to define uid and fsGroup

In the context of the Jenkins k8s plugin it is uids and fsGroups play an
important role, because the containers share a common file system.

Therefore it is benefical to configure this data centraly.

* fix indention

* Undo format changes

* Extend and fix unit tests

* Fix port mapping

* Don't set uid globally

This does not work with jaas due to permissions problems.

* Fix sidecar test

* Make security context configurable at stage level

* Extract json serialization

* Cleanup unit tests
2019-03-20 10:07:37 +01:00
..
artifactSetVersion.groovy Analytics: add step parameter keys (#442) 2019-01-21 08:47:34 +01:00
batsExecuteTests.groovy Analytics: add step parameter keys (#442) 2019-01-21 08:47:34 +01:00
checkChangeInDevelopment.groovy fix general config for param changeManagement (#513) 2019-02-14 08:45:20 +01:00
checksPublishResults.groovy Analytics: add step parameter keys (#442) 2019-01-21 08:47:34 +01:00
cloudFoundryDeploy.groovy Lookup mtar in the whole workspace (#492) 2019-02-07 08:58:00 +01:00
commonPipelineEnvironment.groovy Project "Piper" Template: framework and structure (#476) 2019-02-05 15:37:59 +01:00
containerExecuteStructureTests.groovy Add step containerExecuteStructureTest (#441) 2019-01-31 09:39:13 +01:00
dockerExecute.groovy Wait for sidecar container to be ready (#567) 2019-03-18 14:05:42 +01:00
dockerExecuteOnKubernetes.groovy Make K8S integration more configurable (#552) 2019-03-20 10:07:37 +01:00
durationMeasure.groovy Step name is not a string literal anymore 2018-11-29 09:54:05 +01:00
fioriOnCloudPlatformPipeline.groovy New Scenario Step: SAP UI5 on SAP Cloud Platform (#388) 2019-01-15 13:32:01 +01:00
gaugeExecuteTests.groovy Analytics: add step parameter keys (#442) 2019-01-21 08:47:34 +01:00
githubPublishRelease.groovy Step name is not a string literal anymore 2018-11-29 09:54:05 +01:00
handlePipelineStepErrors.groovy handlePipelineStepErrors: add error data to influx measurement (#563) 2019-03-14 13:51:00 +01:00
healthExecuteCheck.groovy Step name is not a string literal anymore 2018-11-29 09:54:05 +01:00
influxWriteData.groovy influxWriteData: use org/repo as default prefix (#534) 2019-02-28 08:45:44 +01:00
karmaExecuteTests.groovy generate karma docs (#555) 2019-03-13 12:01:05 +01:00
mailSendNotification.groovy Step name is not a string literal anymore 2018-11-29 09:54:05 +01:00
mavenExecute.groovy Analytics: add step parameter keys (#442) 2019-01-21 08:47:34 +01:00
mtaBuild.groovy Remove validation in mtaBuild 2019-02-01 16:13:18 +01:00
neoDeploy.groovy Merge remote-tracking branch 'github/master' into HEAD 2019-03-19 09:06:15 +01:00
newmanExecute.groovy Analytics: add step parameter keys (#442) 2019-01-21 08:47:34 +01:00
npmExecute.groovy Add npmExecute step (#491) 2019-02-21 19:14:48 +01:00
pipelineExecute.groovy Step name is not a string literal anymore 2018-11-29 09:54:05 +01:00
pipelineRestartSteps.groovy Step name is not a string literal anymore 2018-11-29 09:54:05 +01:00
pipelineStashFiles.groovy Step name is not a string literal anymore 2018-11-29 09:54:05 +01:00
pipelineStashFilesAfterBuild.groovy Analytics: add step parameter keys (#442) 2019-01-21 08:47:34 +01:00
pipelineStashFilesBeforeBuild.groovy Analytics: add step parameter keys (#442) 2019-01-21 08:47:34 +01:00
piperInitRunStageConfiguration.groovy Project "Piper" Template: framework and structure (#476) 2019-02-05 15:37:59 +01:00
piperPipeline.groovy Project "Piper" Template: framework and structure (#476) 2019-02-05 15:37:59 +01:00
piperPipelineStageAcceptance.groovy Project "Piper" Template: framework and structure (#476) 2019-02-05 15:37:59 +01:00
piperPipelineStageAdditionalUnitTests.groovy Project "Piper" Template: framework and structure (#476) 2019-02-05 15:37:59 +01:00
piperPipelineStageBuild.groovy Project "Piper" Template: framework and structure (#476) 2019-02-05 15:37:59 +01:00
piperPipelineStageCompliance.groovy Project "Piper" Template: framework and structure (#476) 2019-02-05 15:37:59 +01:00
piperPipelineStageInit.groovy Project "Piper" Template: framework and structure (#476) 2019-02-05 15:37:59 +01:00
piperPipelineStageIntegration.groovy Project "Piper" Template: framework and structure (#476) 2019-02-05 15:37:59 +01:00
piperPipelineStagePerformance.groovy Project "Piper" Template: framework and structure (#476) 2019-02-05 15:37:59 +01:00
piperPipelineStagePromote.groovy Project "Piper" Template: framework and structure (#476) 2019-02-05 15:37:59 +01:00
piperPipelineStagePRVoting.groovy Project "Piper" Template: framework and structure (#476) 2019-02-05 15:37:59 +01:00
piperPipelineStageRelease.groovy Project "Piper" Template: framework and structure (#476) 2019-02-05 15:37:59 +01:00
piperPipelineStageSecurity.groovy Project "Piper" Template: framework and structure (#476) 2019-02-05 15:37:59 +01:00
piperStageWrapper.groovy extend Analytics (#439) 2019-01-30 12:39:33 +01:00
prepareDefaultValues.groovy prepareDefaultValues: streamline logs 2019-02-28 07:06:46 +01:00
seleniumExecuteTests.groovy seleniumExecuteTests & uiVeri5ExecuteTests: improve documentation (#568) 2019-03-19 15:38:52 +01:00
setupCommonPipelineEnvironment.groovy Analytics: add step parameter keys (#442) 2019-01-21 08:47:34 +01:00
slackSendNotification.groovy add step slackSendNotification (#338) 2019-02-13 16:45:35 +01:00
snykExecute.groovy snykExecute: add missing documentation (#570) 2019-03-18 11:08:41 +01:00
testsPublishResults.groovy testsPublishResults: add option to fail the build on test errors (#472) 2019-02-08 12:30:59 +01:00
toolValidate.groovy Remove outdated log message (#550) 2019-03-13 12:38:04 +01:00
transportRequestCreate.groovy Verbose flag for transportRequestCreate 2019-03-05 10:29:23 +01:00
transportRequestRelease.groovy Verbose flag for transport request release 2019-03-05 12:35:28 +01:00
transportRequestUploadFile.groovy imagePull --> pullImage 2019-02-19 11:35:03 +01:00
uiVeri5ExecuteTests.groovy seleniumExecuteTests & uiVeri5ExecuteTests: improve documentation (#568) 2019-03-19 15:38:52 +01:00