This commit is contained in:
Primakov Alexandr Alexandrovich 2020-09-21 19:36:30 +03:00
parent 0e181095fc
commit 80768ed617

17
install/no-cy/Jenkinsfile vendored Normal file
View File

@ -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:cy') {
echo 'Пробуем убрать cypress из зависимостей)'
def cyString = sh(returnStdout: true, script: "cat ./package.json | grep cypress\\\" || echo 'empty'")
echo cyString
if (cyString.contains(',')) {
sh "mv ./package.json ./tmp-package.json"
echo "Cypress найден. Удаляем..."
sh "cat ./tmp-package.json | grep -v cypress\\\" > ./package.json"
}
}