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