Bitrise Build Issue Report template
Description of the issue
Hi! Im facing some trouble with build configuration over ssh protocol with Team Foundation server. The SSH Key is registered in my account on TFS, but SSH fails with Permission Denied error. The SSH url is this:
ssh://USERNAME@SERVERNAME:22/PATHTOREPO
My build log:
version: 1.16.0
INFO[13:25:26] bitrise runs in CI mode
INFO[13:25:26] pattern (validation/with-ssh) triggered workflow (validation_workflow_with_ssh)
Switching to workflow: validation_workflow_with_ssh
±-----------------------------------------------------------------------------+
| (0) Activate App SSH key |
±-----------------------------------------------------------------------------+
| id: activate-ssh-key |
| version: 3.1.1 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: bash |
| time: 2018-05-17T13:25:30Z |
±-----------------------------------------------------------------------------+
Fetched 6,282 kB in 3s (2,091 kB/s)
INFO[13:25:39] Start installing (expect) with apt-get
INFO[13:25:39] * [OK] Step dependency (expect) installed, available.
INFO[13:25:39] Start installing (git) with apt-get
INFO[13:25:39] * [OK] Step dependency (git) installed, available.
Configuration
- Path to save the RSA SSH private key: /root/.ssh/steplib_ssh_step_id_rsa
- Should remove other identities from the ssh-agent? true
-> $ mkdir -p /root/.ssh
-> $ chmod 0600 /root/.ssh/steplib_ssh_step_id_rsa
Could not open a connection to your authentication agent.
(i) ssh_agent_check_result: 2
(i) ssh-agent not started
(i) starting a new ssh-agent and exporting connection information with envman
Agent pid 582
(i) Expose SSH_AUTH_SOCK for the new ssh-agent, with envman
spawn ssh-add /root/.ssh/steplib_ssh_step_id_rsa
Identity added: /root/.ssh/steplib_ssh_step_id_rsa (/root/.ssh/steplib_ssh_step_id_rsa)
Success
The SSH key was saved to /root/.ssh/steplib_ssh_step_id_rsa
and was successfully added to ssh-agent.
| |
±–±--------------------------------------------------------------±---------+
| ✓ | Activate App SSH key | 12 sec |
±–±--------------------------------------------------------------±---------+
▼
±-----------------------------------------------------------------------------+
| (1) Git Clone Repository |
±-----------------------------------------------------------------------------+
| id: git-clone |
| version: 3.4.3 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: go |
| time: 2018-05-17T13:25:41Z |
±-----------------------------------------------------------------------------+
| |
INFO[13:25:41] Start installing (golang) with apt-get
INFO[13:25:41] * [OK] Step dependency (go) installed, available.
Git Clone Configs:
- CloneIntoDir: /bitrise/src
- RepositoryURL: ssh://#######
Git Checkout Configs: - Commit:
- Tag:
- Branch: master
- CloneDepth:
Git Pull Request Configs: - PullRequestURI:
- PullRequestID:
- BranchDest:
- PullRequestMergeBranch:
- ResetRepository: No
Bitrise Build Configs: - BuildURL:
- BuildAPIToken:
Git clone repository
=> git “init”
=> git “remote” “add” “origin” “ssh://########”
=> git “fetch”
0 attempt failed:
Warning: Permanently added ‘tfs.iterative.com.br,201.16.245.209’ (ECDSA) to the list of known hosts.
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Retrying…
=> git “fetch”
1 attempt failed:
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Retrying…
=> git “fetch”
2 attempt failed:
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Failed, error: Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
| |
±–±--------------------------------------------------------------±---------+
| x | Git Clone Repository (exit code: 1) | 13 sec |
±–±--------------------------------------------------------------±---------+
| Update available: 3.4.3 -> 4.0.11 |
| Issue tracker: https://github.com/bitrise-io/steps-git-clone/issues |
| Source: https://github.com/bitrise-io/steps-git-clone |
±–±--------------------------------------------------------------±---------+
▼
INFO[13:25:52] Step uses latest version – Updating StepLib …
INFO[13:25:52] Update StepLib (https://github.com/bitrise-io/bitrise-steplib.git)…
±-----------------------------------------------------------------------------+
| (2) Running project scanner |
±-----------------------------------------------------------------------------+
| id: project-scanner |
| version: 1.6.3 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: bash |
| time: 2018-05-17T13:26:00Z |
±-----------------------------------------------------------------------------+
| |
WARN[13:26:00] A previous step failed, and this step (Running project scanner) was not marked as IsAlwaysRun, skipped
| |
±–±--------------------------------------------------------------±---------+
| - | Running project scanner | 7.70 sec |
±–±--------------------------------------------------------------±---------+
±-----------------------------------------------------------------------------+
| bitrise summary |
±–±--------------------------------------------------------------±---------+
| | title | time (s) |
±–±--------------------------------------------------------------±---------+
| ✓ | Activate App SSH key | 12 sec |
±–±--------------------------------------------------------------±---------+
| x | Git Clone Repository (exit code: 1) | 13 sec |
±–±--------------------------------------------------------------±---------+
| Update available: 3.4.3 -> 4.0.11 |
| Issue tracker: https://github.com/bitrise-io/steps-git-clone/issues |
| Source: https://github.com/bitrise-io/steps-git-clone |
±–±--------------------------------------------------------------±---------+
| - | Running project scanner | 7.70 sec |
±–±--------------------------------------------------------------±---------+
| Total runtime: 32 sec |
±-----------------------------------------------------------------------------+
What is this issue??? Thanks in advance.