Create a Jenkinsfile for reference-ui

Description

Describe reference-ui's build steps in a declarative Jenkinsfile. Create a multi-branch pipeline job based on that file.
An example Jenkinsfile can be found here: https://github.com/OpenLMIS/openlmis-requisition-ui/blob/master/Jenkinsfile

Stages for a UI component:

  • Build (includes tests)

  • Sonar analysis

  • Publish the image

  • Trigger reference-ui-deploy-to-test build

AC:

  • The Jenkinsfile exists in openlmis-reference-ui repository and contains all the required stages

  • There is a multi-branch Jenkins pipeline based on that Jenkinsfile

  • The image is only pushed if all stages succeed and it's either 'master' or 'rel-*' branch

  • The image is deployed to the test server after a successful build

  • update Jenkinsfile in other UI components to use new CI job

Status

Assignee

Jakub Kondrat

Reporter

Jakub Kondrat

Labels

None

Story Points

1

Time tracking

4h

Components

Sprint

None

Priority

Major