Commit bc960dd1 authored by Peter Kuhn's avatar Peter Kuhn
Browse files
parents be36c07d 4c0ea1fa
pipeline {
agent any
stages {
stage('read param') {
steps {
sh 'rm -f src/config.js'
sh 'touch src/config.js'
sh "echo \"export default {\n\" >> src/config.js"
sh 'echo \"senderId: \"${senderId}\",\n\" >> src/config.js'
sh 'echo \"clientId: \"${clientId}\",\n\" >> src/config.js'
sh 'echo \"clientSecret: \"${clientSecret}\",\n\" >> src/config.js'
sh 'echo \"scope: \"${scope}\",\n\" >> src/config.js'
sh 'echo \"};\" >> src/config.js'
}
}
stage('install-dependencies') {
steps {
sh 'npm install'
}
}
stage('build') {
steps {
sh 'npm run build'
}
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment