From cded93d569f172a4573e1c1e5894d12928c36ea0 Mon Sep 17 00:00:00 2001 From: zontreck Date: Thu, 30 Jan 2025 20:34:52 -0700 Subject: [PATCH] ci: fix syntax --- Jenkinsfile | 41 ++++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2f9d4b7..74c58c9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,36 +2,39 @@ pipeline { agent any options { - buildDiscarder { + buildDiscarder ( logRotator(numToKeepStr: '5') - } + ) } - stage("Build") { - agent { - label "flutter" - } + stages { + stage("Build") { + agent { + label "flutter" + } - steps { - sh ''' - #!/bin/bash + steps { + sh ''' + #!/bin/bash - flutter pub get + flutter pub get - flutter build web + flutter build web - cd build/web - tar -cvf ../../web.tgz . + cd build/web + tar -cvf ../../web.tgz . - ''' - } + ''' + } - post { - always { - archiveArtifacts artifacts: "web.tgz" + post { + always { + archiveArtifacts artifacts: "web.tgz" - cleanWs() + cleanWs() + } } } } + } \ No newline at end of file