pipeline {
  agent any
  tools {
    nodejs 'NodeJS 12.16.0'
  }
    stage {
      step {
        echo "Running npm install"
        sh ' npm install '
        sh ' npm run build-storybook '
        script {
          withCredentials([string(credentialsId: 'az-jenkins-sp', variable: 'password')]) {
            sh 'az login $password'
          }
          sh '''az storage blob upload-batch -d '$web' -s $WORKSPACE/storybook-static/  --account-name crayonuikitdev --subscription 'c717cfdb-c1ed-4387-90ef-57b1afbf5460' --auth-mode login --output none'''
        }
      }
    }
}