Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Azure devops e2e test #919

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/Development.md
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,7 @@ export GITLAB_API_TOKEN=<YOUR_GITLAB_TOKEN>
export GITEA_API_TOKEN=<YOUR_GITEA_TOKEN>
export BITBUCKET_API_USER=<YOUR_BITBUCKET_USER>
export BITBUCKET_API_TOKEN=<YOUR_BITBUCKET_TOKEN>
export AZURE_DEVOPS_TOKEN=<YOUR_AZURE_DEVOPS_TOKEN>
export JIRA_USER=<YOUR_JIRA_USER>
export JIRA_TOKEN=<YOUR_JIRA_TOKEN>
export PAGER_DUTY_TOKEN=<YOUR_PAGER_DUTY_TOKEN>
Expand Down
2 changes: 1 addition & 1 deletion docs/GettingStarted/configuration/ExporterCommittime.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ Those options are only applicable to the Commit Time Exporter when the [PROVIDER
###### API_USER

- **Required:** yes
- Only applicable for [PROVIDER](#provider) value: `git` or unset
- Only applicable for [GIT_PROVIDER](#git_provider) value: `github`, `bitbucket`, `gitea` or `gitlab`
- **Type:** string

: GIT API username.
Expand Down
2 changes: 1 addition & 1 deletion docs/UpstreamSupport.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ with out CI integration will have an associated Github issue in CI status and St
| Bitbucket | [status link](https://github.com/dora-metrics/pelorus/issues?q=is%3Aopen+label%3Acommittime-exporter+label%3Abackend-bitbucket+) | [Integration CI present](#integration-in-ci) |
| Gitlab | [status link](https://github.com/dora-metrics/pelorus/issues?q=is%3Aopen+label%3Acommittime-exporter+label%3Abackend-gitlab) | [Integration CI present](#integration-in-ci) |
| Gitea | [status link](https://github.com/dora-metrics/pelorus/issues?q=is%3Aopen+label%3Acommittime-exporter+label%3Abackend-gitea) | [Integration CI present](#integration-in-ci) |
| Azure DevOps | [status link](https://github.com/dora-metrics/pelorus/issues?q=is%3Aopen+label%3Acommittime-exporter+label%3Abackend-azure-devops) | [todo](https://github.com/dora-metrics/pelorus/issues/569) |
| Azure DevOps | [status link](https://github.com/dora-metrics/pelorus/issues?q=is%3Aopen+label%3Acommittime-exporter+label%3Abackend-azure-devops) | [Integration CI present](#integration-in-ci) |

### **Failure Exporter**

Expand Down
6 changes: 3 additions & 3 deletions scripts/run-pelorus-e2e-tests
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function print_help() {
printf "\t\t gitlab_committime - GitLab git provider - REQUIRES 'GITLAB_API_TOKEN=YOUR_GITLAB_TOKEN' SECRET\n"
printf "\t\t gitea_committime - Gitea git provider - REQUIRES 'GITEA_API_TOKEN=YOUR_GITEA_TOKEN' SECRET\n"
printf "\t\t bitbucket_committime - Bitbucket git provider - REQUIRES 'BITBUCKET_API_USER=YOUR_BITBUCKET_USER' AND 'BITBUCKET_API_TOKEN=YOUR_BITBUCKET_TOKEN' SECRETS\n"
printf "\t\t azure-devops-committime - Azure devops git provider - REQUIRES 'AZURE_DEVOPS_USER=YOUR_AZURE_DEVOPS_USER' AND 'AZURE_DEVOPS_TOKEN=YOUR_AZURE_DEVOPS_TOKEN' SECRETS\n"
printf "\t\t azure-devops-committime - Azure devops git provider - REQUIRES 'AZURE_DEVOPS_TOKEN=YOUR_AZURE_DEVOPS_TOKEN' SECRET\n"
printf "\t\t jira_committime - Jira issue tracker - REQUIRES 'JIRA_USER=YOUR_JIRA_USER' AND 'JIRA_TOKEN=YOUR_JIRA_TOKEN' SECRETS\n"
printf "\t\t jira_custom_committime - Jira issue tracker - REQUIRES 'JIRA_USER=YOUR_JIRA_USER' AND 'JIRA_TOKEN=YOUR_JIRA_TOKEN' SECRETS\n"
printf "\t\t pagerduty_failure - PagerDuty issue tracker - REQUIRES 'PAGER_DUTY_TOKEN=YOUR_PAGER_DUTY_TOKEN' SECRET\n"
Expand Down Expand Up @@ -201,7 +201,7 @@ if [ "${ENABLE_ALL_EXPORTERS}" == true ]; then
ENABLE_GITLAB_COM_EXP=true && echo "Enabling Gitlab committime exporter"
ENABLE_GITEA_COM_EXP=true && echo "Enabling Gitea committime exporter"
ENABLE_BITBUCKET_COM_EXP=true && echo "Enabling Bitbucket committime exporter"
# TODO ENABLE_AZURE_DEVOPS_COM_EXP=true && echo "Enabling Azure devops committime exporter"
ENABLE_AZURE_DEVOPS_COM_EXP=true && echo "Enabling Azure devops committime exporter"
ENABLE_JIRA_FAIL_EXP=true && echo "Enabling JIRA failure exporter"
ENABLE_JIRA_CUSTOM_FAIL_EXP=true && echo "Enabling JIRA custom failure exporter"
ENABLE_PAGERDUTY_FAIL_EXP=true && echo "Enabling PagerDuty failure exporter"
Expand Down Expand Up @@ -501,7 +501,7 @@ fi

# enable Azure devops committime exporter
if [ "${ENABLE_AZURE_DEVOPS_COM_EXP}" == true ]; then
secret_configured=$(create_k8s_secret azure-devops-secret AZURE_DEVOPS_TOKEN AZURE_DEVOPS_USER)
secret_configured=$(create_k8s_secret azure-devops-secret AZURE_DEVOPS_TOKEN)
secret_exit=$?
echo "${secret_configured}"
if [[ $secret_exit != 0 ]]; then
Expand Down