jenkinsfile added

parent a61b0a7f
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: \"${subscriberId}\",\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'
}
}
stage('deploy') {
steps {
sh 'sudo cp -r build/* /var/www/html/sender-app/'
}
}
}
}
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