added token and tokenreplacement on jenkins end
All checks were successful
Schedulord/schedulord-discordbot/pipeline/head This commit looks good

This commit is contained in:
Jesse James Isler 2022-06-10 07:56:30 +02:00
parent 151a037e32
commit 450a986494
4 changed files with 13 additions and 3 deletions

1
.env Normal file
View File

@ -0,0 +1 @@
CLIENT_TOKEN=((YourToken))

1
.gitignore vendored
View File

@ -73,7 +73,6 @@ web_modules/
.yarn-integrity .yarn-integrity
# dotenv environment variable files # dotenv environment variable files
.env
.env.development.local .env.development.local
.env.test.local .env.test.local
.env.production.local .env.production.local

10
Jenkinsfile vendored
View File

@ -3,7 +3,17 @@ pipeline {
tools { tools {
nodejs "node" nodejs "node"
} }
environment {
TOKEN = credentials('schedulord-token')
}
stages { stages {
stage('Replace Keys') {
steps {
sh("sed -i 's/((YourToken))/$TOKEN/g' .env")
}
}
stage('NPM Install') { stage('NPM Install') {
steps { steps {
sh 'npm install' sh 'npm install'