no-cy
This commit is contained in:
parent
0e181095fc
commit
80768ed617
17
install/no-cy/Jenkinsfile
vendored
Normal file
17
install/no-cy/Jenkinsfile
vendored
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user