22 lines
No EOL
349 B
Groovy
22 lines
No EOL
349 B
Groovy
pipeline {
|
|
agent {
|
|
node {
|
|
label 'main'
|
|
customWorkspace '/var/www/ellpeck'
|
|
}
|
|
}
|
|
stages {
|
|
stage('Node') {
|
|
when {
|
|
branch 'master'
|
|
}
|
|
steps {
|
|
sh '''ls
|
|
cd /var/www/ellpeck/node
|
|
npm install
|
|
node blog.js
|
|
node rss.js'''
|
|
}
|
|
}
|
|
}
|
|
} |