Hi All,
I am using YAML spec with Atlassian Bamboo version 8.0.6 and configured plan repository with in the YAML spec. Please find the steps I used and error message.
How to pass empty passphrase? or what is workaround for this issue?
Any help will be greatly appreciated.
1). Generated SSH key
ssh-keygen -t ed25519 -C "l.xxxx@gmail.com"
2). Configured public key on Bitbucket server project level.
3). My plan repository YAML spec looks like below. sshKey_devops_public_key and bamboo.sshKey_devops_private_key are global variables. Used passphrase while generating SSH key.
repositories:
- spec-repo:
scope: global
- app-repo:
type: bitbucket-server
server: Bitbucket
project: DEV
slug: simple-java-maven-app
clone-url: ssh://git@xxxxxx:7999/dev/xxxx-app.git
public-key: ${bamboo.sshKey_devops_public_key}
private-key: ${bamboo.sshKey_devops_private_key}
branch: master
command-timeout-minutes: '180'
use-shallow-clones: 'false'
cache-on-agents: 'false'
submodules: 'false'
verbose-logs: 'false'
fetch-all: 'false'
lfs: 'false'
viewer: com.atlassian.bamboo.plugins.stash.atlassian-bamboo-plugin-stash:bbServerViewer
The above YAML spec not working and getting below error.
17-Apr-2022 01:41:20 java.lang.IllegalArgumentException: Cannot read keypair, passphrase wasn't set.
Here is the link to full error message: https://pastebin.com/8LXC69Z3