Jenkinsfile
author Frank Bessou <frank.bessou@logilab.fr>
Mon, 18 Dec 2017 16:10:33 +0100
changeset 255 ba56a53b0abd
parent 132 2b6ce8199a46
permissions -rw-r--r--
Stringify JSON value before rendering in AttributeValue When a JSON value can't be rendered using React components, its raw value is used. That makes the application crash when the value is an object. In this changeset, we ensure that the displayed value is always a string.

#!groovy
node('selenium') {
    stage('Setup') {
        checkout scm

        sh 'npm install'
    }

    stage('Lint') {
        sh 'npm run lint'
    }

    stage('Tests') {
        sh 'npm run test:ci'
        junit 'reports/karma.junit'
    }
}