Skip to content

Instantly share code, notes, and snippets.

@Alona-T
Created August 13, 2023 04:33
Show Gist options
  • Save Alona-T/adf5d71bbfd369617a2d843e08ef4630 to your computer and use it in GitHub Desktop.
Save Alona-T/adf5d71bbfd369617a2d843e08ef4630 to your computer and use it in GitHub Desktop.
Pushing allure report to bitbucket page in bitbucket.yaml file
pipelines:
custom:
run-tests:
- step:
name: Run api dev
image: ubuntu:22.04
script:
- cd tests
- apt update
- apt remove -y nodejs
- apt install -y curl
- apt install -y wget
- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
- source ~/.bashrc
- nvm install v16.14.0
- node -v
- apt install -y npm
- npm install
- npm run testDev
- npm run testDev || true
- apt install -y default-jre
- wget https://github.com/allure-framework/allure2/releases/download/2.18.1/allure_2.18.1-1_all.deb
- dpkg -i allure_2.18.1-1_all.deb
- allure --version
- cd test-reports
- allure generate allure-results --clean -o allure-report
- git init
- git config --global user.email "email"
- git config --global user.name "name"
- git add .
- git commit -m "Adding report"
- git remote add report https://name:api@bitbucket.org/gonetcoins/gonetcoins.bitbucket.io.git
- git push -u -f report master
artifacts:
- "**/test-reports/allure-report/**"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment