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
3
.gitignore
vendored
3
.gitignore
vendored
@ -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
|
||||||
@ -127,4 +126,4 @@ dist
|
|||||||
.yarn/unplugged
|
.yarn/unplugged
|
||||||
.yarn/build-state.yml
|
.yarn/build-state.yml
|
||||||
.yarn/install-state.gz
|
.yarn/install-state.gz
|
||||||
.pnp.*
|
.pnp.*
|
||||||
|
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user