schedulord-discordbot/Jenkinsfile
Jesse James Isler 450a986494
All checks were successful
Schedulord/schedulord-discordbot/pipeline/head This commit looks good
added token and tokenreplacement on jenkins end
2022-06-10 07:56:30 +02:00

29 lines
432 B
Groovy

pipeline {
agent any
tools {
nodejs "node"
}
environment {
TOKEN = credentials('schedulord-token')
}
stages {
stage('Replace Keys') {
steps {
sh("sed -i 's/((YourToken))/$TOKEN/g' .env")
}
}
stage('NPM Install') {
steps {
sh 'npm install'
}
}
stage('Build Dockerfile') {
steps {
sh 'docker build . -t schedulord-frontend'
}
}
}
}