From 519a5d6384b5f7714fcbfa46f4b357793898bb82 Mon Sep 17 00:00:00 2001 From: weloli <45266922+weloli@users.noreply.github.com> Date: Tue, 26 Mar 2019 17:06:34 +0100 Subject: [PATCH 1/2] web analytics: add reporting for dockerExecute and dockerExecuteOnKubernetes (#516) web analytics: add reporting for dockerExecute and dockerExecuteOnKubernetes --- vars/dockerExecute.groovy | 9 +++++++++ vars/dockerExecuteOnKubernetes.groovy | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/vars/dockerExecute.groovy b/vars/dockerExecute.groovy index acd918b6b..b57358aa4 100644 --- a/vars/dockerExecute.groovy +++ b/vars/dockerExecute.groovy @@ -123,6 +123,15 @@ void call(Map parameters = [:], body) { .mixinStageConfig(script.commonPipelineEnvironment, parameters.stageName?:env.STAGE_NAME, STEP_CONFIG_KEYS) .mixin(parameters, PARAMETER_KEYS) .use() + + new Utils().pushToSWA([ + step: STEP_NAME, + stepParamKey1: 'scriptMissing', + stepParam1: parameters?.script == null, + stepParamKey2: 'kubernetes', + stepParam2: isKubernetes() + ], config) + if (isKubernetes() && config.dockerImage) { if (env.POD_NAME && isContainerDefined(config)) { container(getContainerDefined(config)) { diff --git a/vars/dockerExecuteOnKubernetes.groovy b/vars/dockerExecuteOnKubernetes.groovy index ea21b8f85..315c39a24 100644 --- a/vars/dockerExecuteOnKubernetes.groovy +++ b/vars/dockerExecuteOnKubernetes.groovy @@ -121,6 +121,12 @@ void call(Map parameters = [:], body) { .addIfEmpty('uniqueId', UUID.randomUUID().toString()) Map config = configHelper.use() + new Utils().pushToSWA([ + step: STEP_NAME, + stepParamKey1: 'scriptMissing', + stepParam1: parameters?.script == null + ], config) + if (!parameters.containerMap) { configHelper.withMandatoryProperty('dockerImage') config.containerName = 'container-exec' From d8ef8eb5773a334fa7ab256950a14d848f422796 Mon Sep 17 00:00:00 2001 From: Thorsten Duda Date: Wed, 27 Mar 2019 11:42:07 +0100 Subject: [PATCH 2/2] [docu] remove old reference pipelines (#594) * remove old reference pipelines * fix trailing space --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index edcecd3df..af3a99339 100644 --- a/README.md +++ b/README.md @@ -14,15 +14,15 @@ Project "Piper" consists of two parts: * [A shared library][piper-library] containing steps and utilities that are required by Jenkins pipelines. -* A set of [Jenkins pipelines][piper-pipelines] using the piper library to - implement best practice processes. +* A set of [Docker images][devops-docker-images] used in the piper library to implement best practices. Please follow [this link to our extended library documentation][piper-library-pages]. ## What you get The shared library contains all the necessary steps to run our best practice -[Jenkins pipelines][piper-pipelines]. +[Jenkins pipelines][piper-library-pages] described in the Scenarios section or +to run a [pipeline as step][piper-library-scenario]. The best practice pipelines are based on the general concepts of [Jenkins 2.0 Pipelines as Code][jenkins-doc-pipelines]. With that you have the power of the @@ -116,7 +116,8 @@ otherwise in the [LICENSE file][piper-library-license] [github]: https://github.com [piper-library]: https://github.com/SAP/jenkins-library -[piper-pipelines]: https://github.com/SAP/jenkins-pipelines +[devops-docker-images]: https://github.com/SAP/devops-docker-images +[piper-library-scenario]: https://sap.github.io/jenkins-library/scenarios/ui5-sap-cp/Readme/ [piper-library-pages]: https://sap.github.io/jenkins-library [piper-library-pages-plugins]: https://sap.github.io/jenkins-library/jenkins/requiredPlugins [piper-library-issues]: https://github.com/SAP/jenkins-library/issues