diff --git a/build/dev/Jenkinsfile b/build/dev/Jenkinsfile index 33a5235..8428aac 100644 --- a/build/dev/Jenkinsfile +++ b/build/dev/Jenkinsfile @@ -1,3 +1,7 @@ stage ('build') { - sh 'npm run build' + try { + sh 'npm run build' + } catch (error) { + echo error + } } diff --git a/install/no-electron/Jenkinsfile b/install/no-electron/Jenkinsfile new file mode 100644 index 0000000..6f3042e --- /dev/null +++ b/install/no-electron/Jenkinsfile @@ -0,0 +1,17 @@ +import groovy.json.JsonBuilder +import groovy.json.JsonSlurper +import groovy.json.JsonOutput +import java.util.HashMap +import groovy.json.* + +stage('install:no:electron') { + echo 'Пробуем убрать electron из зависимостей)' + def elString = sh(returnStdout: true, script: "cat ./package.json | grep electron\\\" || echo 'empty'") + echo elString + + if (elString.contains(',')) { + sh "mv ./package.json ./tmp-package.json" + echo "Electron найден. Удаляем..." + sh "cat ./tmp-package.json | grep -v electron\\\" > ./package.json" + } +} diff --git a/stats/Jenkinsfile b/stats/Jenkinsfile index 890d8d9..6f1ea66 100644 --- a/stats/Jenkinsfile +++ b/stats/Jenkinsfile @@ -2,8 +2,8 @@ stage('stats') { echo 'checking node and npm versions' sh 'node -v' sh 'npm -v' - // sh 'ls -a' - // sh 'df -h' - // sh 'free -m' + sh 'ls -a' + sh 'df -h' + sh 'free -m' // sh 'vmstat -s' }