GSS-Cogs / databaker

Command line tool to convert spreadsheets to databases, made for the UK's Office for National Statistics.
Other
1 stars 0 forks source link

Add to Jenkins #6

Closed ajtucker closed 3 years ago

ajtucker commented 3 years ago

Create a multi-branch pipeline in Jenkins to run behave.

ajtucker commented 3 years ago

Set up Jenkins job. Added Dockerfile to create repeatable environment to run behave and output as Cucumber reports. Docker image will be rebuilt if Pipfile, Pipflie.lock, setup.py or cucumber-format.patch are changed.

Had issues where the test results weren't found in the post section, due to different workspaces being used for different stages of the build. Needed to use reuseNode true in the docker agent section to get it to use the same workspace.

Job now runs and collects BDD test results.