Skip to content

Commit

Permalink
Use Unix-style file endings
Browse files Browse the repository at this point in the history
  • Loading branch information
mdclyburn committed Aug 31, 2019
1 parent 2ee5487 commit 5d320d0
Showing 1 changed file with 74 additions and 74 deletions.
148 changes: 74 additions & 74 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,74 +1,74 @@
// -*- mode: Groovy; groovy-indent-offset: 2 -*-

pipeline {
agent { node { label 'master' } }

stages {
stage('Documentation') {
steps {
sh 'doxygen >/dev/null'
dir ('doc') {
dir ('latex') {
sh 'latexmk -pdf -dvi- -quiet refman.tex'
stash(name: 'docs-pdf', includes: 'refman.pdf')
}

sh 'tar -cf web.tar -C html .'
stash(name: 'docs-web', includes: 'web.tar')
}
}

when {
branch 'master';
}

post {
always {
sh 'rm -rf docs'
}
}
}

stage('Build') {
agent { node { label 'msp430' } }
steps {
dir ('src') {
sh 'make MSP430PATH=/usr/local/msp430 MSP430MCU=msp430g2553'
}
}

post {
always {
dir ('src') {
sh 'make clean'
}
}
}
}

stage('Publish') {
agent { node { label 'www' } }
steps {
script {
DEPLOY_DIR = '/usr/local/www/build_exports/mdl-msp430'
}

dir ("${DEPLOY_DIR}/docs") {
sh 'rm -rf *'

unstash(name: 'docs-pdf')

dir ('web') {
unstash(name: 'docs-web')
sh 'tar -xf web.tar'
sh 'rm -f web.tar'
}
}
}

when {
branch 'master'
}
}
}
}
// -*- mode: Groovy; groovy-indent-offset: 2 -*-

pipeline {
agent { node { label 'master' } }

stages {
stage('Documentation') {
steps {
sh 'doxygen >/dev/null'
dir ('doc') {
dir ('latex') {
sh 'latexmk -pdf -dvi- -quiet refman.tex'
stash(name: 'docs-pdf', includes: 'refman.pdf')
}

sh 'tar -cf web.tar -C html .'
stash(name: 'docs-web', includes: 'web.tar')
}
}

when {
branch 'master';
}

post {
always {
sh 'rm -rf docs'
}
}
}

stage('Build') {
agent { node { label 'msp430' } }
steps {
dir ('src') {
sh 'make MSP430PATH=/usr/local/msp430 MSP430MCU=msp430g2553'
}
}

post {
always {
dir ('src') {
sh 'make clean'
}
}
}
}

stage('Publish') {
agent { node { label 'www' } }
steps {
script {
DEPLOY_DIR = '/usr/local/www/build_exports/mdl-msp430'
}

dir ("${DEPLOY_DIR}/docs") {
sh 'rm -rf *'

unstash(name: 'docs-pdf')

dir ('web') {
unstash(name: 'docs-web')
sh 'tar -xf web.tar'
sh 'rm -f web.tar'
}
}
}

when {
branch 'master'
}
}
}
}

0 comments on commit 5d320d0

Please sign in to comment.