From ec8fde310d7a6ac7ad50c143a66d9435208f9af0 Mon Sep 17 00:00:00 2001 From: raffaelespazzoli Date: Thu, 14 Jun 2018 20:15:59 +0200 Subject: [PATCH] f --- cucumber-selenium-grid/.gitignore | 1 + cucumber-selenium-grid/Jenkinsfile | 45 ++++++++++++------- .../applier/templates/selenium-grid.yaml | 10 ++--- 3 files changed, 35 insertions(+), 21 deletions(-) create mode 100644 cucumber-selenium-grid/.gitignore diff --git a/cucumber-selenium-grid/.gitignore b/cucumber-selenium-grid/.gitignore new file mode 100644 index 00000000..ab49093a --- /dev/null +++ b/cucumber-selenium-grid/.gitignore @@ -0,0 +1 @@ +/npm-debug.log diff --git a/cucumber-selenium-grid/Jenkinsfile b/cucumber-selenium-grid/Jenkinsfile index 891e29ec..841f063b 100644 --- a/cucumber-selenium-grid/Jenkinsfile +++ b/cucumber-selenium-grid/Jenkinsfile @@ -45,7 +45,6 @@ pipeline { // Turn off Git's SSL cert check, uncomment if needed // sh 'git config --global http.sslVerify false' git url: "${APPLICATION_SOURCE_REPO}" - stash 'source' } } @@ -143,20 +142,36 @@ pipeline { dir ("${CONTEXT_DIR}"){ sh "/bin/bash -c 'npm install'" sh "/bin/bash -c 'npm run integration-test'" - // script { - // archive (includes: 'pkg/*.gem') - // publishHTML (target: [ - // allowMissing: false, - // alwaysLinkToLastBuild: false, - // keepAll: true, - // reportDir: 'coverage', - // reportFiles: 'index.html', - // reportName: "RCov Report" - // ]) - // } - } - } - +// script { +// archive (includes: 'cucumber/*') +// publishHTML (target: [ +// allowMissing: false, +// alwaysLinkToLastBuild: false, +// keepAll: true, +// reportDir: 'report', +// reportFiles: 'index.html', +// reportName: "Cucumber Report" +// ]) +// } + } + } + post { + always { + dir ("${CONTEXT_DIR}"){ + script { + archive (includes: 'cucumber/*') + publishHTML (target: [ + allowMissing: false, + alwaysLinkToLastBuild: false, + keepAll: true, + reportDir: 'report', + reportFiles: 'index.html', + reportName: "Cucumber Report" + ]) + } + } + } + } } diff --git a/cucumber-selenium-grid/applier/templates/selenium-grid.yaml b/cucumber-selenium-grid/applier/templates/selenium-grid.yaml index 883021db..089213cd 100644 --- a/cucumber-selenium-grid/applier/templates/selenium-grid.yaml +++ b/cucumber-selenium-grid/applier/templates/selenium-grid.yaml @@ -82,7 +82,7 @@ objects: args: - start - '--desiredContainers' - - '0' + - '2' - '--screenWidth' - '1440' - '--screenHeight' @@ -127,14 +127,12 @@ objects: kind: Route metadata: annotations: - labels: - application: todomvc - template: basic-nodejs - name: todomvc + name: zalenium + namespace: ${NAMESPACE} spec: to: kind: Service - name: todomvc + name: zalenium - apiVersion: v1 kind: PersistentVolumeClaim metadata: