Обновить Jenkinsfile
This commit is contained in:
Vendored
+3
-7
@@ -10,7 +10,7 @@ pipeline {
|
|||||||
options {
|
options {
|
||||||
buildDiscarder(logRotator(numToKeepStr: '10'))
|
buildDiscarder(logRotator(numToKeepStr: '10'))
|
||||||
disableConcurrentBuilds()
|
disableConcurrentBuilds()
|
||||||
timeout(time: 60, unit: 'MINUTES')
|
timeout(time: 1, unit: 'MINUTES')
|
||||||
timestamps()
|
timestamps()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -22,10 +22,6 @@ pipeline {
|
|||||||
booleanParam(name: 'CLEAN_BUILD', defaultValue: true, description: 'Run flutter clean before build')
|
booleanParam(name: 'CLEAN_BUILD', defaultValue: true, description: 'Run flutter clean before build')
|
||||||
}
|
}
|
||||||
|
|
||||||
triggers {
|
|
||||||
cron('H 2 * * *')
|
|
||||||
}
|
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Preparation') {
|
stage('Preparation') {
|
||||||
steps {
|
steps {
|
||||||
@@ -45,8 +41,8 @@ pipeline {
|
|||||||
stage('Environment Setup') {
|
stage('Environment Setup') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
env.PATH = "/soft/flutter/bin/"
|
//env.PATH = "/soft/flutter/bin/"
|
||||||
sh 'flutter doctor -v'
|
sh '/soft/flutter/bin/flutter doctor -v'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user