added deployment
Some checks failed
CSGOWTF/csgowtf/pipeline/head There was a failure building this commit
Some checks failed
CSGOWTF/csgowtf/pipeline/head There was a failure building this commit
This commit is contained in:
27
Jenkinsfile
vendored
27
Jenkinsfile
vendored
@@ -1,6 +1,11 @@
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
environment {
|
||||
FTP_HOST = credentials('csgowtf-deploy-host')
|
||||
FTP_PASSWORD = credentials('csgowtf-deploy-password')
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Prepare') {
|
||||
steps {
|
||||
@@ -18,5 +23,27 @@ pipeline {
|
||||
archiveArtifacts artifacts: '**/dist/**', excludes: '**/node_modules/**'
|
||||
}
|
||||
}
|
||||
stage('Deploy') {
|
||||
when {
|
||||
branch 'master'
|
||||
}
|
||||
environment {
|
||||
FTP_USERNAME = credentials('csgowtf-deploy-user')
|
||||
}
|
||||
steps {
|
||||
sh 'deploy.sh'
|
||||
}
|
||||
}
|
||||
stage('Deploy Dev') {
|
||||
when {
|
||||
branch 'dev'
|
||||
}
|
||||
environment {
|
||||
FTP_USERNAME = credentials('csgowtf-deploy-user-dev')
|
||||
}
|
||||
steps {
|
||||
sh 'deploy.sh'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user