From 7c5c0245d5c18234311f521437b888a128460d8a Mon Sep 17 00:00:00 2001 From: rezidir Date: Sun, 17 May 2026 11:00:35 +0300 Subject: [PATCH 01/15] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20Jenkinsfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 1717170..fac8112 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -45,6 +45,7 @@ pipeline { stage('Environment Setup') { steps { script { + sh 'flutter -v' def flutterHome = tool name: 'Flutter', type: 'Flutter' env.PATH = "${flutterHome}/bin:${env.PATH}" sh 'flutter doctor -v' From 7bfc722c5aca1dbc3c9480a7ea71bed09b24fa4c Mon Sep 17 00:00:00 2001 From: rezidir Date: Sun, 17 May 2026 11:04:32 +0300 Subject: [PATCH 02/15] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20Jenkinsfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index fac8112..3b858c4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -45,9 +45,7 @@ pipeline { stage('Environment Setup') { steps { script { - sh 'flutter -v' - def flutterHome = tool name: 'Flutter', type: 'Flutter' - env.PATH = "${flutterHome}/bin:${env.PATH}" + env.PATH = "/soft/flutter/bin/" sh 'flutter doctor -v' } } From 12da4d7f97085a73730e66ff9d392df039e6a30c Mon Sep 17 00:00:00 2001 From: rezidir Date: Sun, 17 May 2026 11:16:01 +0300 Subject: [PATCH 03/15] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20Jenkinsfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3b858c4..51bc8cb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,7 +10,7 @@ pipeline { options { buildDiscarder(logRotator(numToKeepStr: '10')) disableConcurrentBuilds() - timeout(time: 60, unit: 'MINUTES') + timeout(time: 1, unit: 'MINUTES') timestamps() } @@ -22,10 +22,6 @@ pipeline { booleanParam(name: 'CLEAN_BUILD', defaultValue: true, description: 'Run flutter clean before build') } - triggers { - cron('H 2 * * *') - } - stages { stage('Preparation') { steps { @@ -45,8 +41,8 @@ pipeline { stage('Environment Setup') { steps { script { - env.PATH = "/soft/flutter/bin/" - sh 'flutter doctor -v' + //env.PATH = "/soft/flutter/bin/" + sh '/soft/flutter/bin/flutter doctor -v' } } } From 825b8ca97466c5a6fb2091d3f501b3e99aabc39b Mon Sep 17 00:00:00 2001 From: rezidir Date: Sun, 17 May 2026 11:18:01 +0300 Subject: [PATCH 04/15] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20Jenkinsfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 51bc8cb..d6fbb26 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -42,6 +42,7 @@ pipeline { steps { script { //env.PATH = "/soft/flutter/bin/" + sh 'ls /soft' sh '/soft/flutter/bin/flutter doctor -v' } } From 885036a83c83ef5d0ac8a83724e535e56e24e526 Mon Sep 17 00:00:00 2001 From: rezidir Date: Sun, 17 May 2026 11:21:11 +0300 Subject: [PATCH 05/15] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20Jenkinsfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index d6fbb26..b657839 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -42,7 +42,7 @@ pipeline { steps { script { //env.PATH = "/soft/flutter/bin/" - sh 'ls /soft' + sh 'find / -name "*flutter*"' sh '/soft/flutter/bin/flutter doctor -v' } } From a4fbb095bf8c274efe96f061ae85eb6c8f34911f Mon Sep 17 00:00:00 2001 From: rezidir Date: Sun, 17 May 2026 11:23:17 +0300 Subject: [PATCH 06/15] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20Jenkinsfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b657839..81cae35 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -41,9 +41,8 @@ pipeline { stage('Environment Setup') { steps { script { - //env.PATH = "/soft/flutter/bin/" - sh 'find / -name "*flutter*"' - sh '/soft/flutter/bin/flutter doctor -v' + //env.PATH = "/opt/flutter/bin/" + sh 'flutter doctor -v' } } } From 3724305650c10b03afcea84db526d8c5c804c5f3 Mon Sep 17 00:00:00 2001 From: rezidir Date: Sun, 17 May 2026 11:24:01 +0300 Subject: [PATCH 07/15] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20Jenkinsfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 81cae35..6f9bcf2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -41,7 +41,7 @@ pipeline { stage('Environment Setup') { steps { script { - //env.PATH = "/opt/flutter/bin/" + env.PATH = "/opt/flutter/bin/" sh 'flutter doctor -v' } } From 54ea2beb2569734501dfe21f608bfadab5ad007b Mon Sep 17 00:00:00 2001 From: rezidir Date: Sun, 17 May 2026 11:27:11 +0300 Subject: [PATCH 08/15] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20Jenkinsfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6f9bcf2..f397af2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -41,8 +41,8 @@ pipeline { stage('Environment Setup') { steps { script { - env.PATH = "/opt/flutter/bin/" - sh 'flutter doctor -v' + //env.PATH = "/opt/flutter/bin/" + sh '/opt/flutter/bin/flutter doctor -v' } } } From 154863343a9e08d8db2c7536eac13eed72de53f4 Mon Sep 17 00:00:00 2001 From: rezidir Date: Sun, 17 May 2026 11:31:54 +0300 Subject: [PATCH 09/15] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20Jenkinsfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index f397af2..2fe57a4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -42,7 +42,7 @@ pipeline { steps { script { //env.PATH = "/opt/flutter/bin/" - sh '/opt/flutter/bin/flutter doctor -v' + sh '/opt/flutter/bin/flutter upgrade -y' } } } From c8b8d69d8596722c9190534f70fce5a79bdf5be9 Mon Sep 17 00:00:00 2001 From: rezidir Date: Sun, 17 May 2026 11:32:22 +0300 Subject: [PATCH 10/15] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20Jenkinsfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2fe57a4..f45ef28 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -42,7 +42,7 @@ pipeline { steps { script { //env.PATH = "/opt/flutter/bin/" - sh '/opt/flutter/bin/flutter upgrade -y' + sh '/opt/flutter/bin/flutter upgrade ' } } } From 9551e4ec84e3007a604694c1cd99a7f4752c8964 Mon Sep 17 00:00:00 2001 From: rezidir Date: Sun, 17 May 2026 11:36:59 +0300 Subject: [PATCH 11/15] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20Jenkinsfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f45ef28..bbb38de 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -41,8 +41,9 @@ pipeline { stage('Environment Setup') { steps { script { - //env.PATH = "/opt/flutter/bin/" - sh '/opt/flutter/bin/flutter upgrade ' + def flutterHome = "/opt/flutter" + env.PATH = "${flutterHome}/bin:${env.PATH}" + sh 'flutter doctor -v' } } } From faad22af5078391fec9d21bc526f90e296e55c32 Mon Sep 17 00:00:00 2001 From: rezidir Date: Sun, 17 May 2026 11:41:29 +0300 Subject: [PATCH 12/15] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20Jenkinsfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index bbb38de..5378b84 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -45,6 +45,11 @@ pipeline { env.PATH = "${flutterHome}/bin:${env.PATH}" sh 'flutter doctor -v' } + script { + //def ANDROID_HOME = "/opt/flutter" + //env.PATH = "${flutterHome}/bin:${env.PATH}" + sh 'find /opt -name "*droid*"' + } } } From 8ae3882f8ad3230a5b610df48d84a96d6ba0a126 Mon Sep 17 00:00:00 2001 From: rezidir Date: Sun, 17 May 2026 11:43:02 +0300 Subject: [PATCH 13/15] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20Jenkinsfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 146 ++++++++++++++++++++++++++-------------------------- 1 file changed, 73 insertions(+), 73 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5378b84..4b61394 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -87,86 +87,86 @@ pipeline { } } - stage('Build Android') { - when { - expression { - def buildType = params.BUILD_TYPE.toLowerCase() - buildType == 'all' || buildType == 'android' - } - } - stages { - stage('Build APK Debug') { - when { - expression { params.ANDROID_FLAVOR.toLowerCase() == 'debug' } - } - steps { - script { - def buildName = "debug" - if (params.VERSION_NAME) buildName += "-${params.VERSION_NAME}" - if (params.VERSION_CODE) buildName += "-${params.VERSION_CODE}" - currentBuild.displayName = "#${currentBuild.number} - Android ${buildName}" + // stage('Build Android') { + // when { + // expression { + // def buildType = params.BUILD_TYPE.toLowerCase() + // buildType == 'all' || buildType == 'android' + // } + // } + // stages { + // stage('Build APK Debug') { + // when { + // expression { params.ANDROID_FLAVOR.toLowerCase() == 'debug' } + // } + // steps { + // script { + // def buildName = "debug" + // if (params.VERSION_NAME) buildName += "-${params.VERSION_NAME}" + // if (params.VERSION_CODE) buildName += "-${params.VERSION_CODE}" + // currentBuild.displayName = "#${currentBuild.number} - Android ${buildName}" - def extraArgs = '' - if (params.VERSION_NAME) extraArgs += " --build-name=${params.VERSION_NAME}" - if (params.VERSION_CODE) extraArgs += " --build-number=${params.VERSION_CODE}" + // def extraArgs = '' + // if (params.VERSION_NAME) extraArgs += " --build-name=${params.VERSION_NAME}" + // if (params.VERSION_CODE) extraArgs += " --build-number=${params.VERSION_CODE}" - sh "flutter build apk --${buildName}${extraArgs}" - } - } - post { - success { - archiveArtifacts artifacts: "build/app/outputs/flutter-apk/app-${buildName}.apk", fingerprint: true - archiveArtifacts artifacts: "build/app/outputs/flutter-apk/*.apk", fingerprint: true - } - } - } + // sh "flutter build apk --${buildName}${extraArgs}" + // } + // } + // post { + // success { + // archiveArtifacts artifacts: "build/app/outputs/flutter-apk/app-${buildName}.apk", fingerprint: true + // archiveArtifacts artifacts: "build/app/outputs/flutter-apk/*.apk", fingerprint: true + // } + // } + // } - stage('Build APK Release') { - when { - expression { params.ANDROID_FLAVOR.toLowerCase() == 'release' } - } - steps { - script { - def buildName = "release" - if (params.VERSION_NAME) buildName += "-${params.VERSION_NAME}" - if (params.VERSION_CODE) buildName += "-${params.VERSION_CODE}" - currentBuild.displayName = "#${currentBuild.number} - Android ${buildName}" + // stage('Build APK Release') { + // when { + // expression { params.ANDROID_FLAVOR.toLowerCase() == 'release' } + // } + // steps { + // script { + // def buildName = "release" + // if (params.VERSION_NAME) buildName += "-${params.VERSION_NAME}" + // if (params.VERSION_CODE) buildName += "-${params.VERSION_CODE}" + // currentBuild.displayName = "#${currentBuild.number} - Android ${buildName}" - def extraArgs = '' - if (params.VERSION_NAME) extraArgs += " --build-name=${params.VERSION_NAME}" - if (params.VERSION_CODE) extraArgs += " --build-number=${params.VERSION_CODE}" + // def extraArgs = '' + // if (params.VERSION_NAME) extraArgs += " --build-name=${params.VERSION_NAME}" + // if (params.VERSION_CODE) extraArgs += " --build-number=${params.VERSION_CODE}" - sh "flutter build apk --release${extraArgs}" - } - } - post { - success { - archiveArtifacts artifacts: "build/app/outputs/flutter-apk/*.apk", fingerprint: true - } - } - } + // sh "flutter build apk --release${extraArgs}" + // } + // } + // post { + // success { + // archiveArtifacts artifacts: "build/app/outputs/flutter-apk/*.apk", fingerprint: true + // } + // } + // } - stage('Build AAB Release') { - when { - expression { params.ANDROID_FLAVOR.toLowerCase() == 'release' } - } - steps { - script { - def extraArgs = '' - if (params.VERSION_NAME) extraArgs += " --build-name=${params.VERSION_NAME}" - if (params.VERSION_CODE) extraArgs += " --build-number=${params.VERSION_CODE}" + // stage('Build AAB Release') { + // when { + // expression { params.ANDROID_FLAVOR.toLowerCase() == 'release' } + // } + // steps { + // script { + // def extraArgs = '' + // if (params.VERSION_NAME) extraArgs += " --build-name=${params.VERSION_NAME}" + // if (params.VERSION_CODE) extraArgs += " --build-number=${params.VERSION_CODE}" - sh "flutter build appbundle --release${extraArgs}" - } - } - post { - success { - archiveArtifacts artifacts: "build/app/outputs/bundle/release/*.aab", fingerprint: true - } - } - } - } - } + // sh "flutter build appbundle --release${extraArgs}" + // } + // } + // post { + // success { + // archiveArtifacts artifacts: "build/app/outputs/bundle/release/*.aab", fingerprint: true + // } + // } + // } + // } + // } stage('Build Web') { when { From b72ebcdca800df3b9dfd5adb445bb08566554e0f Mon Sep 17 00:00:00 2001 From: rezidir Date: Sun, 17 May 2026 11:43:26 +0300 Subject: [PATCH 14/15] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20Jenkinsfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4b61394..ad94f30 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -48,7 +48,7 @@ pipeline { script { //def ANDROID_HOME = "/opt/flutter" //env.PATH = "${flutterHome}/bin:${env.PATH}" - sh 'find /opt -name "*droid*"' + sh 'find /soft -name "*droid*"' } } } From 07be37aab903376c899c0bfb0264ac080eba6e03 Mon Sep 17 00:00:00 2001 From: rezidir Date: Sun, 17 May 2026 11:48:52 +0300 Subject: [PATCH 15/15] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20Jenkinsfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Jenkinsfile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ad94f30..8f7a2aa 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -48,7 +48,7 @@ pipeline { script { //def ANDROID_HOME = "/opt/flutter" //env.PATH = "${flutterHome}/bin:${env.PATH}" - sh 'find /soft -name "*droid*"' + //sh 'find /soft -name "*droid*"' } } } @@ -182,13 +182,20 @@ pipeline { def extraArgs = '' if (params.VERSION_NAME) extraArgs += " --build-name=${params.VERSION_NAME}" if (params.VERSION_CODE) extraArgs += " --build-number=${params.VERSION_CODE}" - + sh "rm -f web.zip" sh "flutter build web --release${extraArgs}" + sh "cd build/web && zip -r ../../web.zip *" + archiveArtifacts 'web.zip' + sh "rm -f web.zip" + } } post { 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 } } }