Skip to content

Commit 2d7b335

Browse files
author
Joshua Sprey
committed
Merge branch 'release/v2.1.0'
2 parents 875249c + 9b9ace8 commit 2d7b335

File tree

4 files changed

+44
-16
lines changed

4 files changed

+44
-16
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [Unreleased]
8+
9+
## [v2.1.0](https://github.com/cloudogu/zalenium-build-lib/releases/tag/v2.1.0) - 2020-12-14
10+
11+
### Added
12+
13+
- config parameter for controlling the video recording during test execution (#11)
14+
715
## [v2.0.0](https://github.com/cloudogu/zalenium-build-lib/releases/tag/v2.0.0) - 2020-02-21
816

917
Heads-up: Breaking change ahead!

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,4 +224,18 @@ withZalenium([ debugZalenium : true ]) { zaleniumIp ->
224224
* [cloudogu/jenkins](https://github.com/cloudogu/jenkins/blob/3bc8b6ab406477e0c3bb232e05f745b1fc91ba70/Jenkinsfile) (JavaScript / yarn)
225225
* [cloudogu/redmine](https://github.com/cloudogu/redmine/blob/740dd3a99a8111c31e4ada1ccb3023d84d6d205f/Jenkinsfile) (JavaScript / yarn)
226226
* [cloudogu/scm](https://github.com/cloudogu/scm/blob/4f1c998425e175a7a52f97dff5b78e82f244a9bf/Jenkinsfile) (JavaScript / yarn)
227-
* [cloudogu/sonar](https://github.com/cloudogu/sonar/blob/3488a6e7e38ee5e2e8fde807de570028e15835a1/Jenkinsfile) (JavaScript / yarn)
227+
* [cloudogu/sonar](https://github.com/cloudogu/sonar/blob/3488a6e7e38ee5e2e8fde807de570028e15835a1/Jenkinsfile) (JavaScript / yarn)
228+
229+
---
230+
### What is the Cloudogu EcoSystem?
231+
The Cloudogu EcoSystem is an open platform, which lets you choose how and where your team creates great software. Each service or tool is delivered as a Dogu, a Docker container. Each Dogu can easily be integrated in your environment just by pulling it from our registry. We have a growing number of ready-to-use Dogus, e.g. SCM-Manager, Jenkins, Nexus, SonarQube, Redmine and many more. Every Dogu can be tailored to your specific needs. Take advantage of a central authentication service, a dynamic navigation, that lets you easily switch between the web UIs and a smart configuration magic, which automatically detects and responds to dependencies between Dogus. The Cloudogu EcoSystem is open source and it runs either on-premises or in the cloud. The Cloudogu EcoSystem is developed by Cloudogu GmbH under [MIT License](https://cloudogu.com/license.html).
232+
233+
### How to get in touch?
234+
Want to talk to the Cloudogu team? Need help or support? There are several ways to get in touch with us:
235+
236+
* [Website](https://cloudogu.com)
237+
* [myCloudogu-Forum](https://forum.cloudogu.com/topic/34?ctx=1)
238+
239+
240+
---
241+
© 2020 Cloudogu GmbH - MADE WITH :heart: FOR DEV ADDICTS. [Legal notice / Impressum](https://cloudogu.com/imprint.html)

vars/withZalenium.groovy

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,29 @@
44
*
55
* @param config contains a map of settings that change the Zalenium behavior. Can be a partial map or even left out.
66
* The defaults are:
7-
* [seleniumVersion : '3.141.59-p8',
8-
* seleniumImage : 'elgalu/selenium',
9-
* zaleniumVersion : '3.141.59g',
10-
* zaleniumImage : 'dosel/zalenium',
11-
* zaleniumVideoDir : 'zalenium',
12-
* sendGoogleAnalytics: false,
13-
* debugZalenium : false]
7+
* [seleniumVersion : '3.141.59-p8',
8+
* seleniumImage : 'elgalu/selenium',
9+
* zaleniumVersion : '3.141.59g',
10+
* zaleniumImage : 'dosel/zalenium',
11+
* zaleniumVideoDir : 'zalenium',
12+
* debugZalenium : false,
13+
* videoRecordingEnabled: false,
14+
* sendGoogleAnalytics : false]
1415
* @param zaleniumNetwork The Zalenium container will be added to this docker network. This is useful if other containers
1516
* must communicate with Zalenium while being in a docker network. If empty or left out, Zalenium will stay in the
1617
* default network.
1718
* @param closure the body
1819
*/
1920
void call(Map config = [:], String zaleniumNetwork, Closure closure) {
2021

21-
def defaultConfig = [seleniumVersion : '3.141.59-p8',
22-
seleniumImage : 'elgalu/selenium',
23-
zaleniumVersion : '3.141.59g',
24-
zaleniumImage : 'dosel/zalenium',
25-
zaleniumVideoDir : 'zalenium',
26-
debugZalenium : false,
27-
sendGoogleAnalytics: false]
22+
def defaultConfig = [seleniumVersion : '3.141.59-p8',
23+
seleniumImage : 'elgalu/selenium',
24+
zaleniumVersion : '3.141.59g',
25+
zaleniumImage : 'dosel/zalenium',
26+
zaleniumVideoDir : 'zalenium',
27+
debugZalenium : false,
28+
videoRecordingEnabled: false,
29+
sendGoogleAnalytics : false]
2830

2931
// Merge default config with the one passed as parameter
3032
config = defaultConfig << config
@@ -58,6 +60,7 @@ void call(Map config = [:], String zaleniumNetwork, Closure closure) {
5860
"-v ${WORKSPACE}/${config.zaleniumVideoDir}:/home/seluser/videos",
5961
'start ' +
6062
"--seleniumImageName ${config.seleniumImage} " +
63+
"--videoRecordingEnabled ${config.videoRecordingEnabled} " +
6164
"${config.debugZalenium ? '--debugEnabled true' : ''} " +
6265
// switch off analytic gathering
6366
"${config.sendGoogleAnalytics ? '--sendAnonymousUsageInfo false' : ''} "
@@ -77,7 +80,9 @@ void call(Map config = [:], String zaleniumNetwork, Closure closure) {
7780
// Wait for Selenium sessions to end (i.e. videos to be copied)
7881
// Leaving the withRun() closure leads to "docker rm -f" being called, cancelling copying
7982
waitForSeleniumSessionsToEnd(zaleniumIp)
80-
archiveArtifacts allowEmptyArchive: true, artifacts: "${config.zaleniumVideoDir}/*.mp4"
83+
if(config.videoRecordingEnabled) {
84+
archiveArtifacts allowEmptyArchive: true, artifacts: "${config.zaleniumVideoDir}/*.mp4"
85+
}
8186

8287
// Stop container gracefully and wait
8388
sh "docker stop ${zaleniumContainer.id}"

vars/withZalenium.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Requires Docker!
1010
- zaleniumVersion - version of the zalenium docker image
1111
- zaleniumVideoDir - path where the videos are stored, relative to the Jenkins workspace.
1212
- debugZalenium - makes the zalenium container write a lot more logs
13+
- videoRecordingEnabled - enables the video recording during the test execution; defaults to false
1314
- sendGoogleAnalytics - if true this will send analytic data to Google/Zalando
1415

1516
Exemplary calls:

0 commit comments

Comments
 (0)