Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Copying general jenkins file
  • Loading branch information
eal13009 committed Feb 7, 2019
1 parent faa4749 commit cf606d7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Jenkinsfile
Expand Up @@ -6,8 +6,8 @@ properties(
[$class: 'LogRotator', artifactDaysToKeepStr: '14', artifactNumToKeepStr: '5', daysToKeepStr: '30', numToKeepStr: '60']],
pipelineTriggers(
[
pollSCM('H/1 * * * *'),
// cron('@daily'),
pollSCM('H/15 * * * *'),
cron('@daily'),
]
)
]
Expand Down Expand Up @@ -36,7 +36,7 @@ node {

stage('Build') {
milestone()
sh 'ng build --prod --aot --progress=false'
sh 'ng build --prod --aot --base-href /' + env.BRANCH_NAME + '/ --progress=false'
}

stage('Archive') {
Expand All @@ -47,7 +47,8 @@ node {
stage('Deploy') {
milestone()
echo "Deploying..."
sh 'rm -r /var/www/html/*'
sh 'cp -r dist/. /var/www/html/'
sh 'rm -rf /var/www/html/' + env.BRANCH_NAME
sh 'mkdir /var/www/html/' + env.BRANCH_NAME
sh 'cp -r dist/. /var/www/html/' + env.BRANCH_NAME + '/'
}
}

0 comments on commit cf606d7

Please sign in to comment.