Ps
Size: a a a
Ps
YT
AK
AK
cm
c
АН
T
no tests
при каждом прогоне.json
и отправляются в методе withAllureUpload
в дженкинсе
stage("Testing") {
steps {
withAllureUpload(serverId: 'allure-testops', projectId: '9', results: [[path: 'allure-results']]) {
sh "ls allure-results -l"
sh """
docker-compose -f ./docker-compose.ci.yml up --build --exit-code-from=cypress --abort-on-container-exit
"""
}
}
}
withAllureUpload(serverId: 'allure-testops', projectId: '9', results: [[path: 'allure-reports']])
it('simple test', () => {
cy.allure().testID("1111");
cy.visit("https://www.google.com/")
})
/project/9/test-cases/1111?treeId=22
T
cm
T
cm
cm
cm
cm
cm
T
[Pipeline] { (Reports)
[Pipeline] withAllureUpload
[Allure] [52736] Job run [https://allure.XXX.io/jobrun/4817] started....
[Allure] [52736] Watching on [allure-results] for session [5003]
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] sh
+ pwd
/home/jenkins/agent/workspace/ui-tests
[Pipeline] sh
+ ls -l
total 232
-rw-r--r-- 1 root root 665 Jan 31 05:49 Dockerfile
-rw-r--r-- 1 root root 5355 Jan 31 05:49 Jenkinsfile
-rw-r--r-- 1 root root 1721 Jan 31 05:49 README.md
drwxr-xr-x 2 root root 4096 Jan 31 05:53 allure-results
drwxr-xr-x 11 root root 4096 Jan 31 05:49 cypress
-rw-r--r-- 1 root root 488 Jan 31 05:49 cypress.json
-rw-r--r-- 1 root root 491 Jan 31 05:49 cypress_urls.yml
-rw-r--r-- 1 root root 809 Jan 31 05:49 docker-compose.ci.yml
drwxr-xr-x 2 root root 4096 Jan 31 05:49 docs
-rw-r--r-- 1 root root 1438 Jan 31 05:49 package.json
-rw-r--r-- 1 root root 626 Jan 31 05:49 tsconfig.json
-rw-r--r-- 1 root root 545 Jan 31 05:49 webpack.config.js
-rw-r--r-- 1 root root 177901 Jan 31 05:49 yarn.lock
[Pipeline] sh
+ echo 'Print out the content of allure-results directory: '
Print out the content of allure-results directory:
[Pipeline] sh
+ ls allure-results -l
total 20
-rw-r--r-- 1 root root 143 Jan 31 05:53 598669c9-7e9a-4667-81e0-6ff49270c5d3-container.json
-rw-r--r-- 1 root root 518 Jan 31 05:53 7357e39a-fd93-48bc-be68-9bfb44eca343-result.json
-rw-r--r-- 1 root root 147 Jan 31 05:53 bc7ab90e-4791-461a-af5e-57614ec309c1-container.json
-rw-r--r-- 1 root root 4391 Jan 31 05:53 ed13165d-57d0-4a52-afa0-bd7cc9aebdf6-result.json
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Allure] [57192] Waiting [20] seconds until all files will be indexed
[Allure] [57192] Waiting until all files will be uploaded
[Allure] [57192] Session [5003] total indexed [0], ignored [5], processed [0], errors [0]
[Allure] [57192] Session [5003] stopped successfully...
[Allure] [57192] Job run [https://allure.XXX.io/jobrun/4817] stopped successfully...
[Pipeline] // withAllureUpload
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // ansiColor
[Pipeline] }
[Pipeline] // container
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // podTemplate
[Pipeline] End of Pipeline
Finished: SUCCESS
T
stage('Reports') {
steps {
withAllureUpload(serverId: 'allure-testops', projectId: '9', results: [[path: 'allure-results']]) {
sh "pwd"
sh "ls -l"
sh """echo "Print out the content of allure-results directory: " """
sh "ls allure-results -l"
}
}
}
T
[Allure] [57192] Session [5003] total indexed [0], ignored [5], processed [0], errors [0]
indexExistingFiles: true
, и игнорируются в дальнейшем