added token and tokenreplacement on jenkins end
All checks were successful
Schedulord/schedulord-discordbot/pipeline/head This commit looks good
All checks were successful
Schedulord/schedulord-discordbot/pipeline/head This commit looks good
This commit is contained in:
parent
151a037e32
commit
450a986494
1
.gitignore
vendored
1
.gitignore
vendored
@ -73,7 +73,6 @@ web_modules/
|
||||
.yarn-integrity
|
||||
|
||||
# dotenv environment variable files
|
||||
.env
|
||||
.env.development.local
|
||||
.env.test.local
|
||||
.env.production.local
|
||||
|
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@ -3,7 +3,17 @@ pipeline {
|
||||
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'
|
||||
|
Loading…
Reference in New Issue
Block a user