@@ -133,7 +133,7 @@ pipeline {
133133 fileOperations([
134134 fileDownloadOperation(
135135 url : params. BUILD_SOURCE ,
136- targetFileName : ' StatusIm-Desktop.tar.gz ' ,
136+ targetFileName : ' StatusIm-Desktop.7z ' ,
137137 targetLocation : ' ./pkg/' ,
138138 userName : ' ' ,
139139 password : ' ' ,
@@ -147,55 +147,53 @@ pipeline {
147147 steps { timeout(5 ) { script { dir(' test/e2e' ) {
148148 copyArtifacts(
149149 projectName : params. BUILD_SOURCE ,
150- filter : ' pkg/*-x86_64.tar.gz ' ,
150+ filter : ' pkg/*-x86_64.7z ' ,
151151 selector : lastWithArtifacts(),
152152 target : ' ./'
153153 )
154- setBuildDescFromFile(utils. findFile(' pkg/*tar.gz ' ))
154+ setBuildDescFromFile(utils. findFile(' pkg/*7z ' ))
155155 } } } }
156156 }
157157
158158 stage(' Unpack' ) {
159159 steps { timeout(5 ) { script { dir(' test/e2e' ) {
160160 sh ' mkdir aut'
161- sh " tar -zxvf '${ utils.findFile('pkg/*tar.gz')} ' -C './aut'"
162- env. AUT_PATH = utils. findFile(' aut/*.AppImage ' )
161+ sh " 7z x '${ utils.findFile('pkg/*tar.gz')} ' -o './aut'"
162+ env. AUT_PATH = utils. findFile(' aut/Status/*.exe ' ) . replace( ' \\ ' , ' / ' )
163163 } } } }
164164 }
165165
166166 stage(' Test' ) {
167- steps { timeout(getTestStageTimeout()) { script { dir(' test/e2e' ) {
168- def flags = []
169- if (params. TEST_NAME ) { flags. add(" -k=${ params.TEST_NAME} " ) }
170- if (params. TEST_SCOPE_FLAG ) { flags. add(params. TEST_SCOPE_FLAG ) }
171- if (params. LOG_LEVEL ) { flags. addAll([" --log-level=${ params.LOG_LEVEL} " , " --log-cli-level=${ params.LOG_LEVEL} " ]) }
172- dir (' configs' ) { sh ' ln -s _local.ci.py _local.py' }
173- wrap([
174- $class : ' Xvfb' ,
175- autoDisplayName : true ,
176- parallelBuild : true ,
177- screen : ' 2560x1440x24' ,
178- additionalOptions : ' -dpi 1'
179- ]) {
180- sh ' fluxbox &'
181- withCredentials([
182- usernamePassword(
183- credentialsId : ' test-rail-api-devops' ,
184- usernameVariable : ' TESTRAIL_USR' ,
185- passwordVariable : ' TESTRAIL_PSW'
186- ),
187- string(credentialsId : ' wallet-test-user-seed' , variable : ' WALLET_TEST_USER_SEED' )
188- ]) {
189- /* Keep the --reruns flag first, or it won't work */
190- sh """
191- python310 -m pytest -m "not keycard" -v --reruns=1 --timeout=300 ${ flags.join(" ")} \
192- --disable-warnings \
193- --alluredir=./allure-results \
194- -o timeout_func_only=true
195- """
167+ steps {
168+ timeout(time : getTestStageTimeout()) {
169+ dir(' test/e2e' ) {
170+ script {
171+ def flags = []
172+ if (params. TEST_NAME ) { flags. add(" -k=${ params.TEST_NAME} " ) }
173+ if (params. TEST_SCOPE_FLAG ) { flags. add(params. TEST_SCOPE_FLAG ) }
174+ if (params. LOG_LEVEL ) { flags. addAll([" --log-level=${ params.LOG_LEVEL} " , " --log-cli-level=${ params.LOG_LEVEL} " ]) }
175+ def flagStr = flags. join(' ' )
176+
177+ withCredentials([
178+ usernamePassword(credentialsId : ' test-rail-api-devops' , usernameVariable : ' TESTRAIL_USR' , passwordVariable : ' TESTRAIL_PSW' ),
179+ string(credentialsId : ' wallet-test-user-seed' , variable : ' WALLET_TEST_USER_SEED' )
180+ ]) {
181+ sh"""
182+ pushd configs
183+ ln -sf _local.ci.py _local.py || cp _local.ci.py _local.py
184+ popd
185+
186+ # Run tests
187+ ${ VIRTUAL_ENV} \\ Scripts\\ python.exe -m pytest -m "not keycard" -v --reruns=1 --timeout=300 ${ flagStr} `
188+ --disable-warnings `
189+ --alluredir=./allure-results `
190+ -o timeout_func_only=true
191+ """
192+ }
193+ }
196194 }
197195 }
198- } } } }
196+ }
199197 }
200198 }
201199
0 commit comments