2021-07-07 15:05:57 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
stages {
|
|
|
|
stage('Build') {
|
|
|
|
when {
|
|
|
|
branch 'main'
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh '''cd src
|
|
|
|
npm install
|
2021-07-07 15:13:36 +02:00
|
|
|
npx presskit build --output ../out --pretty-links --collapse-menu'''
|
2021-07-07 15:15:39 +02:00
|
|
|
sh '''rm -rf /var/www/press/*
|
2021-07-07 15:17:05 +02:00
|
|
|
cp out/. /var/www/press'''
|
2021-07-07 15:05:57 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|