2022-06-08 14:04:45 +00:00
|
|
|
pipeline {
|
2022-06-09 14:41:31 +00:00
|
|
|
agent any
|
|
|
|
tools {
|
|
|
|
nodejs "node"
|
|
|
|
}
|
2022-06-10 05:56:30 +00:00
|
|
|
|
|
|
|
environment {
|
|
|
|
TOKEN = credentials('schedulord-token')
|
|
|
|
}
|
|
|
|
|
2022-06-09 14:41:31 +00:00
|
|
|
stages {
|
2022-06-10 05:56:30 +00:00
|
|
|
stage('Replace Keys') {
|
|
|
|
steps {
|
|
|
|
sh("sed -i 's/((YourToken))/$TOKEN/g' .env")
|
|
|
|
}
|
|
|
|
}
|
2022-06-09 14:41:31 +00:00
|
|
|
stage('NPM Install') {
|
|
|
|
steps {
|
|
|
|
sh 'npm install'
|
|
|
|
}
|
2022-06-08 14:04:45 +00:00
|
|
|
}
|
2022-06-09 14:41:31 +00:00
|
|
|
stage('Build Dockerfile') {
|
|
|
|
steps {
|
|
|
|
sh 'docker build . -t schedulord-frontend'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-06-08 14:04:45 +00:00
|
|
|
}
|