Обновить Jenkinsfile
This commit is contained in:
Vendored
+10
-3
@@ -48,7 +48,7 @@ pipeline {
|
|||||||
script {
|
script {
|
||||||
//def ANDROID_HOME = "/opt/flutter"
|
//def ANDROID_HOME = "/opt/flutter"
|
||||||
//env.PATH = "${flutterHome}/bin:${env.PATH}"
|
//env.PATH = "${flutterHome}/bin:${env.PATH}"
|
||||||
sh 'find /soft -name "*droid*"'
|
//sh 'find /soft -name "*droid*"'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -182,13 +182,20 @@ pipeline {
|
|||||||
def extraArgs = ''
|
def extraArgs = ''
|
||||||
if (params.VERSION_NAME) extraArgs += " --build-name=${params.VERSION_NAME}"
|
if (params.VERSION_NAME) extraArgs += " --build-name=${params.VERSION_NAME}"
|
||||||
if (params.VERSION_CODE) extraArgs += " --build-number=${params.VERSION_CODE}"
|
if (params.VERSION_CODE) extraArgs += " --build-number=${params.VERSION_CODE}"
|
||||||
|
sh "rm -f web.zip"
|
||||||
sh "flutter build web --release${extraArgs}"
|
sh "flutter build web --release${extraArgs}"
|
||||||
|
sh "cd build/web && zip -r ../../web.zip *"
|
||||||
|
archiveArtifacts 'web.zip'
|
||||||
|
sh "rm -f web.zip"
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
success {
|
success {
|
||||||
archiveArtifacts artifacts: "build/web/**/*", fingerprint: true
|
sh "cd build/web && zip -r ../../web.zip *"
|
||||||
|
archiveArtifacts 'web.zip'
|
||||||
|
sh "rm -f web.zip"
|
||||||
|
// archiveArtifacts artifacts: "build/web/**/*", fingerprint: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user