1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00
sap-jenkins-library/test/groovy/util
Ramachandra Kamath Arbettu c84114c3df
Enable support for executing on K8S as a step (#231)
* Create executeDockerOnKubernetes.groovy

* Update dockerExecute.groovy

* Create SysEnvTest.groovy

* Update default_pipeline_environment.yml

* Update executeDockerOnKubernetes.groovy

* Create utils object

* update docker image

* Update mavenExecute.groovy

* Use pipeline-lib than piper

* Check container name

* Always change ownership to 1000

* Check for map

* Fix command

* Move chmod to docker execute

* Use generic name for the pod

* runAsPod has been added

* Return false if script has no k8smapping

* fix syntax error

* Null checks

* Returnn dockerImage name

* Check method body

* Return container name

* Cleanup echos

* Use runAsPod

* Rename step

* Use official jenkins JNLP agent image

* Construct containersMap

* Check if kubernetes plugin is active

* Support JaaS

* pass script object

* Move configuration to default section

* Use generic flag to check if running in k8s

* fix jnlp agent name

* Solve travis errors

* Improvements to config and changes to name of the method

* Improvements to config

* Fix type

* Rename stash config

* add import

* Fix map order

* Fix jnlp agent name

* cleanup config usage

* Check if config is enabled

* Use nested k8s mapping

* Support custom docker workspace and move flag to env

* Feature/k8s stage (#1)

* Use nested k8s mapping

* Support custom docker workspace and move flag to env

* Check dockerOptions value

* Support local execution

* Add tests for dockerExecute

* Move config to step and Fix tests

* Use step configuration while running as a pod

* Streamline parameter and config initialization

* Streamline parameter and tests

* Cleanup and align variable name

* Use default JNLP agent if one not defined in config

* Add tests for runInsidePod. Ensure lowercase container names.

* Improve tests and remove unused code block

* Fix permission issues

* Perform stashing and unstashing inside container

* Use custom jnlp agent due to user id restriction

* Fix tests after jnlp agent change

* Address review comments

* Initialize script to default value if null

* Address review comments

* Update exeception handling and documentation

* Improve documentation

* correct indent

* Link documents to the index page

* Merge containerExecute and dockerExecuteOnKuberenetes step and address comments.

* Update dockerExecute.md

* Update dockerExecuteOnKubernetes.md

* Update default_pipeline_environment.yml

* update documentation

* Update documentation. Use annotation for singleton

* Update DockerExecuteOnKubernetesTest.groovy

* Update dockerExecute.groovy

* Update dockerExecuteOnKubernetes.groovy

* Improve documentation and test case names

* neoDeploy: switch to chained ConfigurationHelper (#244)

* switch neoDeploy to chained ConfigurationHelper

* update imports

* Improve tests

* Address review comments

* Improve documentation

* made dockerImage non-mandatory parm, improved test

* add comment regarding userid assumption
2018-08-21 15:45:59 +02:00
..
BasePiperTest.groovy speed up tests 2018-06-06 11:19:19 +02:00
BasePiperTestContext.groovy speed up tests 2018-06-06 11:19:19 +02:00
JenkinsCredentialsRule.groovy Introduce CredentialsRule 2018-07-18 12:45:30 +02:00
JenkinsDockerExecuteRule.groovy speed up tests 2018-06-06 11:19:19 +02:00
JenkinsEnvironmentRule.groovy add steps for file stashing 2018-05-30 12:00:13 +02:00
JenkinsErrorRule.groovy add error rule as common rule 2018-02-01 10:11:37 +01:00
JenkinsLoggingRule.groovy [fix] misplaced quotation mark in assertion message 2018-07-12 08:12:32 +02:00
JenkinsPropertiesRule.groovy Initial check-in of lesfurets test improvements (#23) 2018-01-10 10:27:55 +01:00
JenkinsReadFileRule.groovy Step for automatic versioning (#65) 2018-02-07 13:17:33 +01:00
JenkinsReadJsonRule.groovy add steps for file stashing 2018-05-30 12:00:13 +02:00
JenkinsReadMavenPomRule.groovy Step for automatic versioning (#65) 2018-02-07 13:17:33 +01:00
JenkinsReadYamlRule.groovy add MTA versioning class 2018-06-27 11:08:09 +02:00
JenkinsResetDefaultCacheRule.groovy Replace JenkinsConfigRule by more speaking readYaml rule 2018-01-29 09:42:23 +01:00
JenkinsScriptLoaderRule.groovy Initial check-in of lesfurets test improvements (#23) 2018-01-10 10:27:55 +01:00
JenkinsSetupRule.groovy [refactoring] Rule handling 2018-01-29 09:42:23 +01:00
JenkinsShellCallRule.groovy Return a return value based on a regex comparism 2018-06-28 13:38:48 +02:00
JenkinsStepRule.groovy add JenkinsStepRule 2018-02-28 11:54:39 +01:00
JenkinsWriteFileRule.groovy Step for automatic versioning (#65) 2018-02-07 13:17:33 +01:00
JenkinsWriteJsonRule.groovy artifactSetVersion - add new artifact types & cleanup (#242) 2018-08-08 22:21:26 +02:00
LibraryLoadingTestExecutionListener.groovy restore tracked methods on afterTestMethod 2018-07-02 14:03:41 +02:00
MockHelper.groovy Initial check-in of lesfurets test improvements (#23) 2018-01-10 10:27:55 +01:00
PluginMock.groovy Enable support for executing on K8S as a step (#231) 2018-08-21 15:45:59 +02:00
ProjectSource.groovy Initial check-in of lesfurets test improvements (#23) 2018-01-10 10:27:55 +01:00
Rules.groovy fix maven execute test 2018-05-30 12:30:26 +02:00
SharedLibraryCreator.groovy [refactoring] Remove redundant code 2018-01-16 09:43:24 +01:00