schedulord-discordbot/Jenkinsfile

29 lines
432 B
Plaintext
Raw Permalink Normal View History

2022-06-08 14:04:45 +00:00
pipeline {
2022-06-09 14:41:31 +00:00
agent any
tools {
nodejs "node"
}
environment {
TOKEN = credentials('schedulord-token')
}
2022-06-09 14:41:31 +00:00
stages {
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
}