|
|
|
@ -17,7 +17,7 @@ steps: |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- mkdir -p bin |
|
|
|
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.30/grabpl |
|
|
|
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.31/grabpl |
|
|
|
|
- chmod +x bin/grabpl |
|
|
|
|
- ./bin/grabpl verify-drone |
|
|
|
|
- curl -fLO https://github.com/jwilder/dockerize/releases/download/v$${DOCKERIZE_VERSION}/dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz |
|
|
|
@ -30,7 +30,7 @@ steps: |
|
|
|
|
- name: lint-backend |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl lint-backend |
|
|
|
|
- ./bin/grabpl lint-backend --edition oss |
|
|
|
|
environment: |
|
|
|
|
CGO_ENABLED: 1 |
|
|
|
|
depends_on: |
|
|
|
@ -62,8 +62,8 @@ steps: |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- "[ $(grep FocusConvey -R pkg | wc -l) -eq \"0\" ] || exit 1" |
|
|
|
|
- ./bin/grabpl test-backend |
|
|
|
|
- ./bin/grabpl integration-tests |
|
|
|
|
- ./bin/grabpl test-backend --edition oss |
|
|
|
|
- ./bin/grabpl integration-tests --edition oss |
|
|
|
|
depends_on: |
|
|
|
|
- initialize |
|
|
|
|
- lint-backend |
|
|
|
@ -102,10 +102,10 @@ steps: |
|
|
|
|
- initialize |
|
|
|
|
- lint-backend |
|
|
|
|
|
|
|
|
|
- name: package |
|
|
|
|
- name: gen-version |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- . scripts/build/gpg-test-vars.sh && ./bin/grabpl package --jobs 8 --edition oss --build-id ${DRONE_BUILD_NUMBER} --no-pull-enterprise --variants linux-x64,linux-x64-musl,osx64,win64 |
|
|
|
|
- ./bin/grabpl gen-version --build-id ${DRONE_BUILD_NUMBER} |
|
|
|
|
depends_on: |
|
|
|
|
- build-backend |
|
|
|
|
- build-frontend |
|
|
|
@ -116,6 +116,13 @@ steps: |
|
|
|
|
- shellcheck |
|
|
|
|
- check-dashboard-schemas |
|
|
|
|
|
|
|
|
|
- name: package |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- . scripts/build/gpg-test-vars.sh && ./bin/grabpl package --jobs 8 --edition oss --build-id ${DRONE_BUILD_NUMBER} --no-pull-enterprise --variants linux-x64,linux-x64-musl,osx64,win64 |
|
|
|
|
depends_on: |
|
|
|
|
- gen-version |
|
|
|
|
|
|
|
|
|
- name: end-to-end-tests-server |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
detach: true |
|
|
|
@ -166,6 +173,7 @@ steps: |
|
|
|
|
- name: copy-packages-for-docker |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ls dist/*.tar.gz* |
|
|
|
|
- cp dist/*.tar.gz* packaging/docker/ |
|
|
|
|
depends_on: |
|
|
|
|
- package |
|
|
|
@ -251,7 +259,7 @@ steps: |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- mkdir -p bin |
|
|
|
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.30/grabpl |
|
|
|
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.31/grabpl |
|
|
|
|
- chmod +x bin/grabpl |
|
|
|
|
- ./bin/grabpl verify-drone |
|
|
|
|
- curl -fLO https://github.com/jwilder/dockerize/releases/download/v$${DOCKERIZE_VERSION}/dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz |
|
|
|
@ -276,7 +284,7 @@ steps: |
|
|
|
|
- name: lint-backend |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl lint-backend |
|
|
|
|
- ./bin/grabpl lint-backend --edition oss |
|
|
|
|
environment: |
|
|
|
|
CGO_ENABLED: 1 |
|
|
|
|
depends_on: |
|
|
|
@ -308,8 +316,8 @@ steps: |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- "[ $(grep FocusConvey -R pkg | wc -l) -eq \"0\" ] || exit 1" |
|
|
|
|
- ./bin/grabpl test-backend |
|
|
|
|
- ./bin/grabpl integration-tests |
|
|
|
|
- ./bin/grabpl test-backend --edition oss |
|
|
|
|
- ./bin/grabpl integration-tests --edition oss |
|
|
|
|
depends_on: |
|
|
|
|
- initialize |
|
|
|
|
- lint-backend |
|
|
|
@ -362,6 +370,20 @@ steps: |
|
|
|
|
- initialize |
|
|
|
|
- lint-backend |
|
|
|
|
|
|
|
|
|
- name: gen-version |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl gen-version --build-id ${DRONE_BUILD_NUMBER} |
|
|
|
|
depends_on: |
|
|
|
|
- build-backend |
|
|
|
|
- build-frontend |
|
|
|
|
- build-plugins |
|
|
|
|
- test-backend |
|
|
|
|
- test-frontend |
|
|
|
|
- codespell |
|
|
|
|
- shellcheck |
|
|
|
|
- check-dashboard-schemas |
|
|
|
|
|
|
|
|
|
- name: package |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
@ -378,14 +400,7 @@ steps: |
|
|
|
|
GRAFANA_API_KEY: |
|
|
|
|
from_secret: grafana_api_key |
|
|
|
|
depends_on: |
|
|
|
|
- build-backend |
|
|
|
|
- build-frontend |
|
|
|
|
- build-plugins |
|
|
|
|
- test-backend |
|
|
|
|
- test-frontend |
|
|
|
|
- codespell |
|
|
|
|
- shellcheck |
|
|
|
|
- check-dashboard-schemas |
|
|
|
|
- gen-version |
|
|
|
|
|
|
|
|
|
- name: end-to-end-tests-server |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
@ -440,6 +455,7 @@ steps: |
|
|
|
|
- name: copy-packages-for-docker |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ls dist/*.tar.gz* |
|
|
|
|
- cp dist/*.tar.gz* packaging/docker/ |
|
|
|
|
depends_on: |
|
|
|
|
- package |
|
|
|
@ -565,7 +581,7 @@ steps: |
|
|
|
|
image: grafana/ci-wix:0.1.1 |
|
|
|
|
commands: |
|
|
|
|
- $$ProgressPreference = "SilentlyContinue" |
|
|
|
|
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.30/windows/grabpl.exe -OutFile grabpl.exe |
|
|
|
|
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.31/windows/grabpl.exe -OutFile grabpl.exe |
|
|
|
|
- .\grabpl.exe verify-drone |
|
|
|
|
|
|
|
|
|
- name: build-windows-installer |
|
|
|
@ -615,7 +631,7 @@ steps: |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- mkdir -p bin |
|
|
|
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.30/grabpl |
|
|
|
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.31/grabpl |
|
|
|
|
- chmod +x bin/grabpl |
|
|
|
|
- ./bin/grabpl verify-drone |
|
|
|
|
environment: |
|
|
|
@ -700,7 +716,7 @@ steps: |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- mkdir -p bin |
|
|
|
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.30/grabpl |
|
|
|
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.31/grabpl |
|
|
|
|
- chmod +x bin/grabpl |
|
|
|
|
- ./bin/grabpl verify-drone |
|
|
|
|
- ./bin/grabpl verify-version ${DRONE_TAG} |
|
|
|
@ -714,7 +730,7 @@ steps: |
|
|
|
|
- name: lint-backend |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl lint-backend |
|
|
|
|
- ./bin/grabpl lint-backend --edition oss |
|
|
|
|
environment: |
|
|
|
|
CGO_ENABLED: 1 |
|
|
|
|
depends_on: |
|
|
|
@ -746,8 +762,8 @@ steps: |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- "[ $(grep FocusConvey -R pkg | wc -l) -eq \"0\" ] || exit 1" |
|
|
|
|
- ./bin/grabpl test-backend |
|
|
|
|
- ./bin/grabpl integration-tests |
|
|
|
|
- ./bin/grabpl test-backend --edition oss |
|
|
|
|
- ./bin/grabpl integration-tests --edition oss |
|
|
|
|
depends_on: |
|
|
|
|
- initialize |
|
|
|
|
- lint-backend |
|
|
|
@ -792,6 +808,20 @@ steps: |
|
|
|
|
- initialize |
|
|
|
|
- lint-backend |
|
|
|
|
|
|
|
|
|
- name: gen-version |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl gen-version ${DRONE_TAG} |
|
|
|
|
depends_on: |
|
|
|
|
- build-backend |
|
|
|
|
- build-frontend |
|
|
|
|
- build-plugins |
|
|
|
|
- test-backend |
|
|
|
|
- test-frontend |
|
|
|
|
- codespell |
|
|
|
|
- shellcheck |
|
|
|
|
- check-dashboard-schemas |
|
|
|
|
|
|
|
|
|
- name: package |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
@ -808,14 +838,7 @@ steps: |
|
|
|
|
GRAFANA_API_KEY: |
|
|
|
|
from_secret: grafana_api_key |
|
|
|
|
depends_on: |
|
|
|
|
- build-backend |
|
|
|
|
- build-frontend |
|
|
|
|
- build-plugins |
|
|
|
|
- test-backend |
|
|
|
|
- test-frontend |
|
|
|
|
- codespell |
|
|
|
|
- shellcheck |
|
|
|
|
- check-dashboard-schemas |
|
|
|
|
- gen-version |
|
|
|
|
|
|
|
|
|
- name: end-to-end-tests-server |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
@ -850,6 +873,7 @@ steps: |
|
|
|
|
- name: copy-packages-for-docker |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ls dist/*.tar.gz* |
|
|
|
|
- cp dist/*.tar.gz* packaging/docker/ |
|
|
|
|
depends_on: |
|
|
|
|
- package |
|
|
|
@ -987,7 +1011,7 @@ steps: |
|
|
|
|
image: grafana/ci-wix:0.1.1 |
|
|
|
|
commands: |
|
|
|
|
- $$ProgressPreference = "SilentlyContinue" |
|
|
|
|
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.30/windows/grabpl.exe -OutFile grabpl.exe |
|
|
|
|
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.31/windows/grabpl.exe -OutFile grabpl.exe |
|
|
|
|
- .\grabpl.exe verify-drone |
|
|
|
|
|
|
|
|
|
- name: build-windows-installer |
|
|
|
@ -1038,7 +1062,7 @@ steps: |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- mkdir -p bin |
|
|
|
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.30/grabpl |
|
|
|
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.31/grabpl |
|
|
|
|
- chmod +x bin/grabpl |
|
|
|
|
- git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git" |
|
|
|
|
- cd grafana-enterprise |
|
|
|
@ -1070,7 +1094,7 @@ steps: |
|
|
|
|
- name: lint-backend |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl lint-backend |
|
|
|
|
- ./bin/grabpl lint-backend --edition enterprise |
|
|
|
|
environment: |
|
|
|
|
CGO_ENABLED: 1 |
|
|
|
|
depends_on: |
|
|
|
@ -1102,8 +1126,8 @@ steps: |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- "[ $(grep FocusConvey -R pkg | wc -l) -eq \"0\" ] || exit 1" |
|
|
|
|
- ./bin/grabpl test-backend |
|
|
|
|
- ./bin/grabpl integration-tests |
|
|
|
|
- ./bin/grabpl test-backend --edition enterprise |
|
|
|
|
- ./bin/grabpl integration-tests --edition enterprise |
|
|
|
|
depends_on: |
|
|
|
|
- initialize |
|
|
|
|
- lint-backend |
|
|
|
@ -1148,6 +1172,53 @@ steps: |
|
|
|
|
- initialize |
|
|
|
|
- lint-backend |
|
|
|
|
|
|
|
|
|
- name: lint-backend-enterprise2 |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl lint-backend --edition enterprise2 |
|
|
|
|
environment: |
|
|
|
|
CGO_ENABLED: 1 |
|
|
|
|
depends_on: |
|
|
|
|
- initialize |
|
|
|
|
|
|
|
|
|
- name: test-backend-enterprise2 |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- "[ $(grep FocusConvey -R pkg | wc -l) -eq \"0\" ] || exit 1" |
|
|
|
|
- ./bin/grabpl test-backend --edition enterprise2 |
|
|
|
|
- ./bin/grabpl integration-tests --edition enterprise2 |
|
|
|
|
depends_on: |
|
|
|
|
- initialize |
|
|
|
|
- lint-backend-enterprise2 |
|
|
|
|
|
|
|
|
|
- name: build-backend-enterprise2 |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl build-backend --jobs 8 --edition enterprise2 --github-token $${GITHUB_TOKEN} --no-pull-enterprise ${DRONE_TAG} |
|
|
|
|
environment: |
|
|
|
|
GITHUB_TOKEN: |
|
|
|
|
from_secret: github_token |
|
|
|
|
depends_on: |
|
|
|
|
- initialize |
|
|
|
|
- lint-backend-enterprise2 |
|
|
|
|
- test-backend-enterprise2 |
|
|
|
|
|
|
|
|
|
- name: gen-version |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl gen-version ${DRONE_TAG} |
|
|
|
|
depends_on: |
|
|
|
|
- build-backend |
|
|
|
|
- build-frontend |
|
|
|
|
- build-plugins |
|
|
|
|
- test-backend |
|
|
|
|
- test-frontend |
|
|
|
|
- codespell |
|
|
|
|
- shellcheck |
|
|
|
|
- check-dashboard-schemas |
|
|
|
|
- build-backend-enterprise2 |
|
|
|
|
- test-backend-enterprise2 |
|
|
|
|
|
|
|
|
|
- name: package |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
@ -1164,14 +1235,7 @@ steps: |
|
|
|
|
GRAFANA_API_KEY: |
|
|
|
|
from_secret: grafana_api_key |
|
|
|
|
depends_on: |
|
|
|
|
- build-backend |
|
|
|
|
- build-frontend |
|
|
|
|
- build-plugins |
|
|
|
|
- test-backend |
|
|
|
|
- test-frontend |
|
|
|
|
- codespell |
|
|
|
|
- shellcheck |
|
|
|
|
- check-dashboard-schemas |
|
|
|
|
- gen-version |
|
|
|
|
|
|
|
|
|
- name: end-to-end-tests-server |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
@ -1198,6 +1262,7 @@ steps: |
|
|
|
|
- name: copy-packages-for-docker |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ls dist/*.tar.gz* |
|
|
|
|
- cp dist/*.tar.gz* packaging/docker/ |
|
|
|
|
depends_on: |
|
|
|
|
- package |
|
|
|
@ -1271,41 +1336,10 @@ steps: |
|
|
|
|
- mysql-integration-tests |
|
|
|
|
- postgres-integration-tests |
|
|
|
|
|
|
|
|
|
- name: lint-backend-enterprise2 |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl lint-backend --build-tags=enterprise2 |
|
|
|
|
environment: |
|
|
|
|
CGO_ENABLED: 1 |
|
|
|
|
depends_on: |
|
|
|
|
- initialize |
|
|
|
|
|
|
|
|
|
- name: test-backend-enterprise2 |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- "[ $(grep FocusConvey -R pkg | wc -l) -eq \"0\" ] || exit 1" |
|
|
|
|
- ./bin/grabpl test-backend --build-tags enterprise2 |
|
|
|
|
- ./bin/grabpl integration-tests --build-tags enterprise2 |
|
|
|
|
depends_on: |
|
|
|
|
- initialize |
|
|
|
|
- lint-backend-enterprise2 |
|
|
|
|
|
|
|
|
|
- name: build-backend-enterprise2 |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl build-backend --jobs 8 --edition enterprise --build-tags enterprise2 --github-token $${GITHUB_TOKEN} --no-pull-enterprise ${DRONE_TAG} |
|
|
|
|
environment: |
|
|
|
|
GITHUB_TOKEN: |
|
|
|
|
from_secret: github_token |
|
|
|
|
depends_on: |
|
|
|
|
- initialize |
|
|
|
|
- lint-backend-enterprise2 |
|
|
|
|
- test-backend-enterprise2 |
|
|
|
|
|
|
|
|
|
- name: package-enterprise2 |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl package --jobs 8 --edition enterprise --build-tags enterprise2 --github-token $${GITHUB_TOKEN} --no-pull-enterprise --sign ${DRONE_TAG} |
|
|
|
|
- ./bin/grabpl package --jobs 8 --edition enterprise2 --github-token $${GITHUB_TOKEN} --no-pull-enterprise --sign ${DRONE_TAG} |
|
|
|
|
environment: |
|
|
|
|
GITHUB_TOKEN: |
|
|
|
|
from_secret: github_token |
|
|
|
@ -1318,14 +1352,7 @@ steps: |
|
|
|
|
GRAFANA_API_KEY: |
|
|
|
|
from_secret: grafana_api_key |
|
|
|
|
depends_on: |
|
|
|
|
- build-backend-enterprise2 |
|
|
|
|
- build-frontend |
|
|
|
|
- build-plugins |
|
|
|
|
- test-backend-enterprise2 |
|
|
|
|
- test-frontend |
|
|
|
|
- codespell |
|
|
|
|
- shellcheck |
|
|
|
|
- check-dashboard-schemas |
|
|
|
|
- gen-version |
|
|
|
|
|
|
|
|
|
- name: end-to-end-tests-server-enterprise2 |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
@ -1352,7 +1379,7 @@ steps: |
|
|
|
|
- name: upload-packages-enterprise2 |
|
|
|
|
image: grafana/grafana-ci-deploy:1.2.7 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl upload-packages --edition enterprise --build-tags enterprise2 --packages-bucket grafana-downloads-enterprise2 |
|
|
|
|
- ./bin/grabpl upload-packages --edition enterprise2 --packages-bucket grafana-downloads-enterprise2 |
|
|
|
|
environment: |
|
|
|
|
GCP_GRAFANA_UPLOAD_KEY: |
|
|
|
|
from_secret: gcp_key |
|
|
|
@ -1405,7 +1432,7 @@ steps: |
|
|
|
|
image: grafana/ci-wix:0.1.1 |
|
|
|
|
commands: |
|
|
|
|
- $$ProgressPreference = "SilentlyContinue" |
|
|
|
|
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.30/windows/grabpl.exe -OutFile grabpl.exe |
|
|
|
|
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.31/windows/grabpl.exe -OutFile grabpl.exe |
|
|
|
|
- git clone "https://$$env:GITHUB_TOKEN@github.com/grafana/grafana-enterprise.git" |
|
|
|
|
- cd grafana-enterprise |
|
|
|
|
- git checkout ${DRONE_TAG} |
|
|
|
@ -1471,7 +1498,7 @@ steps: |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- mkdir -p bin |
|
|
|
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.30/grabpl |
|
|
|
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.31/grabpl |
|
|
|
|
- chmod +x bin/grabpl |
|
|
|
|
- ./bin/grabpl verify-drone |
|
|
|
|
- ./bin/grabpl verify-version ${DRONE_TAG} |
|
|
|
@ -1576,7 +1603,7 @@ steps: |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- mkdir -p bin |
|
|
|
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.30/grabpl |
|
|
|
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.31/grabpl |
|
|
|
|
- chmod +x bin/grabpl |
|
|
|
|
- ./bin/grabpl verify-drone |
|
|
|
|
- ./bin/grabpl verify-version v7.3.0-test |
|
|
|
@ -1590,7 +1617,7 @@ steps: |
|
|
|
|
- name: lint-backend |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl lint-backend |
|
|
|
|
- ./bin/grabpl lint-backend --edition oss |
|
|
|
|
environment: |
|
|
|
|
CGO_ENABLED: 1 |
|
|
|
|
depends_on: |
|
|
|
@ -1622,8 +1649,8 @@ steps: |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- "[ $(grep FocusConvey -R pkg | wc -l) -eq \"0\" ] || exit 1" |
|
|
|
|
- ./bin/grabpl test-backend |
|
|
|
|
- ./bin/grabpl integration-tests |
|
|
|
|
- ./bin/grabpl test-backend --edition oss |
|
|
|
|
- ./bin/grabpl integration-tests --edition oss |
|
|
|
|
depends_on: |
|
|
|
|
- initialize |
|
|
|
|
- lint-backend |
|
|
|
@ -1668,6 +1695,20 @@ steps: |
|
|
|
|
- initialize |
|
|
|
|
- lint-backend |
|
|
|
|
|
|
|
|
|
- name: gen-version |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl gen-version v7.3.0-test |
|
|
|
|
depends_on: |
|
|
|
|
- build-backend |
|
|
|
|
- build-frontend |
|
|
|
|
- build-plugins |
|
|
|
|
- test-backend |
|
|
|
|
- test-frontend |
|
|
|
|
- codespell |
|
|
|
|
- shellcheck |
|
|
|
|
- check-dashboard-schemas |
|
|
|
|
|
|
|
|
|
- name: package |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
@ -1684,14 +1725,7 @@ steps: |
|
|
|
|
GRAFANA_API_KEY: |
|
|
|
|
from_secret: grafana_api_key |
|
|
|
|
depends_on: |
|
|
|
|
- build-backend |
|
|
|
|
- build-frontend |
|
|
|
|
- build-plugins |
|
|
|
|
- test-backend |
|
|
|
|
- test-frontend |
|
|
|
|
- codespell |
|
|
|
|
- shellcheck |
|
|
|
|
- check-dashboard-schemas |
|
|
|
|
- gen-version |
|
|
|
|
|
|
|
|
|
- name: end-to-end-tests-server |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
@ -1726,6 +1760,7 @@ steps: |
|
|
|
|
- name: copy-packages-for-docker |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ls dist/*.tar.gz* |
|
|
|
|
- cp dist/*.tar.gz* packaging/docker/ |
|
|
|
|
depends_on: |
|
|
|
|
- package |
|
|
|
@ -1852,7 +1887,7 @@ steps: |
|
|
|
|
image: grafana/ci-wix:0.1.1 |
|
|
|
|
commands: |
|
|
|
|
- $$ProgressPreference = "SilentlyContinue" |
|
|
|
|
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.30/windows/grabpl.exe -OutFile grabpl.exe |
|
|
|
|
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.31/windows/grabpl.exe -OutFile grabpl.exe |
|
|
|
|
- .\grabpl.exe verify-drone |
|
|
|
|
|
|
|
|
|
- name: build-windows-installer |
|
|
|
@ -1903,7 +1938,7 @@ steps: |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- mkdir -p bin |
|
|
|
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.30/grabpl |
|
|
|
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.31/grabpl |
|
|
|
|
- chmod +x bin/grabpl |
|
|
|
|
- git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git" |
|
|
|
|
- cd grafana-enterprise |
|
|
|
@ -1935,7 +1970,7 @@ steps: |
|
|
|
|
- name: lint-backend |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl lint-backend |
|
|
|
|
- ./bin/grabpl lint-backend --edition enterprise |
|
|
|
|
environment: |
|
|
|
|
CGO_ENABLED: 1 |
|
|
|
|
depends_on: |
|
|
|
@ -1967,8 +2002,8 @@ steps: |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- "[ $(grep FocusConvey -R pkg | wc -l) -eq \"0\" ] || exit 1" |
|
|
|
|
- ./bin/grabpl test-backend |
|
|
|
|
- ./bin/grabpl integration-tests |
|
|
|
|
- ./bin/grabpl test-backend --edition enterprise |
|
|
|
|
- ./bin/grabpl integration-tests --edition enterprise |
|
|
|
|
depends_on: |
|
|
|
|
- initialize |
|
|
|
|
- lint-backend |
|
|
|
@ -2013,6 +2048,53 @@ steps: |
|
|
|
|
- initialize |
|
|
|
|
- lint-backend |
|
|
|
|
|
|
|
|
|
- name: lint-backend-enterprise2 |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl lint-backend --edition enterprise2 |
|
|
|
|
environment: |
|
|
|
|
CGO_ENABLED: 1 |
|
|
|
|
depends_on: |
|
|
|
|
- initialize |
|
|
|
|
|
|
|
|
|
- name: test-backend-enterprise2 |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- "[ $(grep FocusConvey -R pkg | wc -l) -eq \"0\" ] || exit 1" |
|
|
|
|
- ./bin/grabpl test-backend --edition enterprise2 |
|
|
|
|
- ./bin/grabpl integration-tests --edition enterprise2 |
|
|
|
|
depends_on: |
|
|
|
|
- initialize |
|
|
|
|
- lint-backend-enterprise2 |
|
|
|
|
|
|
|
|
|
- name: build-backend-enterprise2 |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl build-backend --jobs 8 --edition enterprise2 --github-token $${GITHUB_TOKEN} --no-pull-enterprise v7.3.0-test |
|
|
|
|
environment: |
|
|
|
|
GITHUB_TOKEN: |
|
|
|
|
from_secret: github_token |
|
|
|
|
depends_on: |
|
|
|
|
- initialize |
|
|
|
|
- lint-backend-enterprise2 |
|
|
|
|
- test-backend-enterprise2 |
|
|
|
|
|
|
|
|
|
- name: gen-version |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl gen-version v7.3.0-test |
|
|
|
|
depends_on: |
|
|
|
|
- build-backend |
|
|
|
|
- build-frontend |
|
|
|
|
- build-plugins |
|
|
|
|
- test-backend |
|
|
|
|
- test-frontend |
|
|
|
|
- codespell |
|
|
|
|
- shellcheck |
|
|
|
|
- check-dashboard-schemas |
|
|
|
|
- build-backend-enterprise2 |
|
|
|
|
- test-backend-enterprise2 |
|
|
|
|
|
|
|
|
|
- name: package |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
@ -2029,14 +2111,7 @@ steps: |
|
|
|
|
GRAFANA_API_KEY: |
|
|
|
|
from_secret: grafana_api_key |
|
|
|
|
depends_on: |
|
|
|
|
- build-backend |
|
|
|
|
- build-frontend |
|
|
|
|
- build-plugins |
|
|
|
|
- test-backend |
|
|
|
|
- test-frontend |
|
|
|
|
- codespell |
|
|
|
|
- shellcheck |
|
|
|
|
- check-dashboard-schemas |
|
|
|
|
- gen-version |
|
|
|
|
|
|
|
|
|
- name: end-to-end-tests-server |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
@ -2063,6 +2138,7 @@ steps: |
|
|
|
|
- name: copy-packages-for-docker |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ls dist/*.tar.gz* |
|
|
|
|
- cp dist/*.tar.gz* packaging/docker/ |
|
|
|
|
depends_on: |
|
|
|
|
- package |
|
|
|
@ -2130,41 +2206,10 @@ steps: |
|
|
|
|
- mysql-integration-tests |
|
|
|
|
- postgres-integration-tests |
|
|
|
|
|
|
|
|
|
- name: lint-backend-enterprise2 |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl lint-backend --build-tags=enterprise2 |
|
|
|
|
environment: |
|
|
|
|
CGO_ENABLED: 1 |
|
|
|
|
depends_on: |
|
|
|
|
- initialize |
|
|
|
|
|
|
|
|
|
- name: test-backend-enterprise2 |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- "[ $(grep FocusConvey -R pkg | wc -l) -eq \"0\" ] || exit 1" |
|
|
|
|
- ./bin/grabpl test-backend --build-tags enterprise2 |
|
|
|
|
- ./bin/grabpl integration-tests --build-tags enterprise2 |
|
|
|
|
depends_on: |
|
|
|
|
- initialize |
|
|
|
|
- lint-backend-enterprise2 |
|
|
|
|
|
|
|
|
|
- name: build-backend-enterprise2 |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl build-backend --jobs 8 --edition enterprise --build-tags enterprise2 --github-token $${GITHUB_TOKEN} --no-pull-enterprise v7.3.0-test |
|
|
|
|
environment: |
|
|
|
|
GITHUB_TOKEN: |
|
|
|
|
from_secret: github_token |
|
|
|
|
depends_on: |
|
|
|
|
- initialize |
|
|
|
|
- lint-backend-enterprise2 |
|
|
|
|
- test-backend-enterprise2 |
|
|
|
|
|
|
|
|
|
- name: package-enterprise2 |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl package --jobs 8 --edition enterprise --build-tags enterprise2 --github-token $${GITHUB_TOKEN} --no-pull-enterprise --sign v7.3.0-test |
|
|
|
|
- ./bin/grabpl package --jobs 8 --edition enterprise2 --github-token $${GITHUB_TOKEN} --no-pull-enterprise --sign v7.3.0-test |
|
|
|
|
environment: |
|
|
|
|
GITHUB_TOKEN: |
|
|
|
|
from_secret: github_token |
|
|
|
@ -2177,14 +2222,7 @@ steps: |
|
|
|
|
GRAFANA_API_KEY: |
|
|
|
|
from_secret: grafana_api_key |
|
|
|
|
depends_on: |
|
|
|
|
- build-backend-enterprise2 |
|
|
|
|
- build-frontend |
|
|
|
|
- build-plugins |
|
|
|
|
- test-backend-enterprise2 |
|
|
|
|
- test-frontend |
|
|
|
|
- codespell |
|
|
|
|
- shellcheck |
|
|
|
|
- check-dashboard-schemas |
|
|
|
|
- gen-version |
|
|
|
|
|
|
|
|
|
- name: end-to-end-tests-server-enterprise2 |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
@ -2211,7 +2249,7 @@ steps: |
|
|
|
|
- name: upload-packages-enterprise2 |
|
|
|
|
image: grafana/grafana-ci-deploy:1.2.7 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl upload-packages --edition enterprise --build-tags enterprise2 --packages-bucket grafana-downloads-test |
|
|
|
|
- ./bin/grabpl upload-packages --edition enterprise2 --packages-bucket grafana-downloads-test |
|
|
|
|
environment: |
|
|
|
|
GCP_GRAFANA_UPLOAD_KEY: |
|
|
|
|
from_secret: gcp_key |
|
|
|
@ -2264,7 +2302,7 @@ steps: |
|
|
|
|
image: grafana/ci-wix:0.1.1 |
|
|
|
|
commands: |
|
|
|
|
- $$ProgressPreference = "SilentlyContinue" |
|
|
|
|
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.30/windows/grabpl.exe -OutFile grabpl.exe |
|
|
|
|
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.31/windows/grabpl.exe -OutFile grabpl.exe |
|
|
|
|
- git clone "https://$$env:GITHUB_TOKEN@github.com/grafana/grafana-enterprise.git" |
|
|
|
|
- cd grafana-enterprise |
|
|
|
|
- git checkout master |
|
|
|
@ -2330,7 +2368,7 @@ steps: |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- mkdir -p bin |
|
|
|
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.30/grabpl |
|
|
|
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.31/grabpl |
|
|
|
|
- chmod +x bin/grabpl |
|
|
|
|
- ./bin/grabpl verify-drone |
|
|
|
|
- ./bin/grabpl verify-version v7.3.0-test |
|
|
|
@ -2435,7 +2473,7 @@ steps: |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- mkdir -p bin |
|
|
|
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.30/grabpl |
|
|
|
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.31/grabpl |
|
|
|
|
- chmod +x bin/grabpl |
|
|
|
|
- ./bin/grabpl verify-drone |
|
|
|
|
- curl -fLO https://github.com/jwilder/dockerize/releases/download/v$${DOCKERIZE_VERSION}/dockerize-linux-amd64-v$${DOCKERIZE_VERSION}.tar.gz |
|
|
|
@ -2448,7 +2486,7 @@ steps: |
|
|
|
|
- name: lint-backend |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl lint-backend |
|
|
|
|
- ./bin/grabpl lint-backend --edition oss |
|
|
|
|
environment: |
|
|
|
|
CGO_ENABLED: 1 |
|
|
|
|
depends_on: |
|
|
|
@ -2480,8 +2518,8 @@ steps: |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- "[ $(grep FocusConvey -R pkg | wc -l) -eq \"0\" ] || exit 1" |
|
|
|
|
- ./bin/grabpl test-backend |
|
|
|
|
- ./bin/grabpl integration-tests |
|
|
|
|
- ./bin/grabpl test-backend --edition oss |
|
|
|
|
- ./bin/grabpl integration-tests --edition oss |
|
|
|
|
depends_on: |
|
|
|
|
- initialize |
|
|
|
|
- lint-backend |
|
|
|
@ -2523,6 +2561,20 @@ steps: |
|
|
|
|
- initialize |
|
|
|
|
- lint-backend |
|
|
|
|
|
|
|
|
|
- name: gen-version |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl gen-version --build-id ${DRONE_BUILD_NUMBER} |
|
|
|
|
depends_on: |
|
|
|
|
- build-backend |
|
|
|
|
- build-frontend |
|
|
|
|
- build-plugins |
|
|
|
|
- test-backend |
|
|
|
|
- test-frontend |
|
|
|
|
- codespell |
|
|
|
|
- shellcheck |
|
|
|
|
- check-dashboard-schemas |
|
|
|
|
|
|
|
|
|
- name: package |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
@ -2539,14 +2591,7 @@ steps: |
|
|
|
|
GRAFANA_API_KEY: |
|
|
|
|
from_secret: grafana_api_key |
|
|
|
|
depends_on: |
|
|
|
|
- build-backend |
|
|
|
|
- build-frontend |
|
|
|
|
- build-plugins |
|
|
|
|
- test-backend |
|
|
|
|
- test-frontend |
|
|
|
|
- codespell |
|
|
|
|
- shellcheck |
|
|
|
|
- check-dashboard-schemas |
|
|
|
|
- gen-version |
|
|
|
|
|
|
|
|
|
- name: end-to-end-tests-server |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
@ -2581,6 +2626,7 @@ steps: |
|
|
|
|
- name: copy-packages-for-docker |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ls dist/*.tar.gz* |
|
|
|
|
- cp dist/*.tar.gz* packaging/docker/ |
|
|
|
|
depends_on: |
|
|
|
|
- package |
|
|
|
@ -2688,7 +2734,7 @@ steps: |
|
|
|
|
image: grafana/ci-wix:0.1.1 |
|
|
|
|
commands: |
|
|
|
|
- $$ProgressPreference = "SilentlyContinue" |
|
|
|
|
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.30/windows/grabpl.exe -OutFile grabpl.exe |
|
|
|
|
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.31/windows/grabpl.exe -OutFile grabpl.exe |
|
|
|
|
- .\grabpl.exe verify-drone |
|
|
|
|
|
|
|
|
|
- name: build-windows-installer |
|
|
|
@ -2735,7 +2781,7 @@ steps: |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- mkdir -p bin |
|
|
|
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.30/grabpl |
|
|
|
|
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.31/grabpl |
|
|
|
|
- chmod +x bin/grabpl |
|
|
|
|
- git clone "https://$${GITHUB_TOKEN}@github.com/grafana/grafana-enterprise.git" |
|
|
|
|
- cd grafana-enterprise |
|
|
|
@ -2766,7 +2812,7 @@ steps: |
|
|
|
|
- name: lint-backend |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl lint-backend |
|
|
|
|
- ./bin/grabpl lint-backend --edition enterprise |
|
|
|
|
environment: |
|
|
|
|
CGO_ENABLED: 1 |
|
|
|
|
depends_on: |
|
|
|
@ -2798,8 +2844,8 @@ steps: |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- "[ $(grep FocusConvey -R pkg | wc -l) -eq \"0\" ] || exit 1" |
|
|
|
|
- ./bin/grabpl test-backend |
|
|
|
|
- ./bin/grabpl integration-tests |
|
|
|
|
- ./bin/grabpl test-backend --edition enterprise |
|
|
|
|
- ./bin/grabpl integration-tests --edition enterprise |
|
|
|
|
depends_on: |
|
|
|
|
- initialize |
|
|
|
|
- lint-backend |
|
|
|
@ -2841,6 +2887,50 @@ steps: |
|
|
|
|
- initialize |
|
|
|
|
- lint-backend |
|
|
|
|
|
|
|
|
|
- name: lint-backend-enterprise2 |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl lint-backend --edition enterprise2 |
|
|
|
|
environment: |
|
|
|
|
CGO_ENABLED: 1 |
|
|
|
|
depends_on: |
|
|
|
|
- initialize |
|
|
|
|
|
|
|
|
|
- name: test-backend-enterprise2 |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- "[ $(grep FocusConvey -R pkg | wc -l) -eq \"0\" ] || exit 1" |
|
|
|
|
- ./bin/grabpl test-backend --edition enterprise2 |
|
|
|
|
- ./bin/grabpl integration-tests --edition enterprise2 |
|
|
|
|
depends_on: |
|
|
|
|
- initialize |
|
|
|
|
- lint-backend-enterprise2 |
|
|
|
|
|
|
|
|
|
- name: build-backend-enterprise2 |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl build-backend --jobs 8 --edition enterprise2 --build-id ${DRONE_BUILD_NUMBER} --variants linux-x64 --no-pull-enterprise |
|
|
|
|
depends_on: |
|
|
|
|
- initialize |
|
|
|
|
- lint-backend-enterprise2 |
|
|
|
|
- test-backend-enterprise2 |
|
|
|
|
|
|
|
|
|
- name: gen-version |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl gen-version --build-id ${DRONE_BUILD_NUMBER} |
|
|
|
|
depends_on: |
|
|
|
|
- build-backend |
|
|
|
|
- build-frontend |
|
|
|
|
- build-plugins |
|
|
|
|
- test-backend |
|
|
|
|
- test-frontend |
|
|
|
|
- codespell |
|
|
|
|
- shellcheck |
|
|
|
|
- check-dashboard-schemas |
|
|
|
|
- build-backend-enterprise2 |
|
|
|
|
- test-backend-enterprise2 |
|
|
|
|
|
|
|
|
|
- name: package |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
@ -2857,14 +2947,7 @@ steps: |
|
|
|
|
GRAFANA_API_KEY: |
|
|
|
|
from_secret: grafana_api_key |
|
|
|
|
depends_on: |
|
|
|
|
- build-backend |
|
|
|
|
- build-frontend |
|
|
|
|
- build-plugins |
|
|
|
|
- test-backend |
|
|
|
|
- test-frontend |
|
|
|
|
- codespell |
|
|
|
|
- shellcheck |
|
|
|
|
- check-dashboard-schemas |
|
|
|
|
- gen-version |
|
|
|
|
|
|
|
|
|
- name: end-to-end-tests-server |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
@ -2901,6 +2984,7 @@ steps: |
|
|
|
|
- name: copy-packages-for-docker |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ls dist/*.tar.gz* |
|
|
|
|
- cp dist/*.tar.gz* packaging/docker/ |
|
|
|
|
depends_on: |
|
|
|
|
- package |
|
|
|
@ -2968,38 +3052,10 @@ steps: |
|
|
|
|
- mysql-integration-tests |
|
|
|
|
- postgres-integration-tests |
|
|
|
|
|
|
|
|
|
- name: lint-backend-enterprise2 |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl lint-backend --build-tags=enterprise2 |
|
|
|
|
environment: |
|
|
|
|
CGO_ENABLED: 1 |
|
|
|
|
depends_on: |
|
|
|
|
- initialize |
|
|
|
|
|
|
|
|
|
- name: test-backend-enterprise2 |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- "[ $(grep FocusConvey -R pkg | wc -l) -eq \"0\" ] || exit 1" |
|
|
|
|
- ./bin/grabpl test-backend --build-tags enterprise2 |
|
|
|
|
- ./bin/grabpl integration-tests --build-tags enterprise2 |
|
|
|
|
depends_on: |
|
|
|
|
- initialize |
|
|
|
|
- lint-backend-enterprise2 |
|
|
|
|
|
|
|
|
|
- name: build-backend-enterprise2 |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl build-backend --jobs 8 --edition enterprise --build-tags enterprise2 --build-id ${DRONE_BUILD_NUMBER} --variants linux-x64 --no-pull-enterprise |
|
|
|
|
depends_on: |
|
|
|
|
- initialize |
|
|
|
|
- lint-backend-enterprise2 |
|
|
|
|
- test-backend-enterprise2 |
|
|
|
|
|
|
|
|
|
- name: package-enterprise2 |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl package --jobs 8 --edition enterprise --build-tags enterprise2 --build-id ${DRONE_BUILD_NUMBER} --no-pull-enterprise --variants linux-x64 --sign |
|
|
|
|
- ./bin/grabpl package --jobs 8 --edition enterprise2 --build-id ${DRONE_BUILD_NUMBER} --no-pull-enterprise --variants linux-x64 --sign |
|
|
|
|
environment: |
|
|
|
|
GITHUB_TOKEN: |
|
|
|
|
from_secret: github_token |
|
|
|
@ -3012,14 +3068,7 @@ steps: |
|
|
|
|
GRAFANA_API_KEY: |
|
|
|
|
from_secret: grafana_api_key |
|
|
|
|
depends_on: |
|
|
|
|
- build-backend-enterprise2 |
|
|
|
|
- build-frontend |
|
|
|
|
- build-plugins |
|
|
|
|
- test-backend-enterprise2 |
|
|
|
|
- test-frontend |
|
|
|
|
- codespell |
|
|
|
|
- shellcheck |
|
|
|
|
- check-dashboard-schemas |
|
|
|
|
- gen-version |
|
|
|
|
|
|
|
|
|
- name: end-to-end-tests-server-enterprise2 |
|
|
|
|
image: grafana/build-container:1.3.0 |
|
|
|
@ -3046,7 +3095,7 @@ steps: |
|
|
|
|
- name: upload-packages-enterprise2 |
|
|
|
|
image: grafana/grafana-ci-deploy:1.2.7 |
|
|
|
|
commands: |
|
|
|
|
- ./bin/grabpl upload-packages --edition enterprise --build-tags enterprise2 --packages-bucket grafana-downloads-enterprise2 |
|
|
|
|
- ./bin/grabpl upload-packages --edition enterprise2 --packages-bucket grafana-downloads-enterprise2 |
|
|
|
|
environment: |
|
|
|
|
GCP_GRAFANA_UPLOAD_KEY: |
|
|
|
|
from_secret: gcp_key |
|
|
|
@ -3099,7 +3148,7 @@ steps: |
|
|
|
|
image: grafana/ci-wix:0.1.1 |
|
|
|
|
commands: |
|
|
|
|
- $$ProgressPreference = "SilentlyContinue" |
|
|
|
|
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.30/windows/grabpl.exe -OutFile grabpl.exe |
|
|
|
|
- Invoke-WebRequest https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.31/windows/grabpl.exe -OutFile grabpl.exe |
|
|
|
|
- git clone "https://$$env:GITHUB_TOKEN@github.com/grafana/grafana-enterprise.git" |
|
|
|
|
- cd grafana-enterprise |
|
|
|
|
- git checkout $$env:DRONE_BRANCH |
|
|
|
|