Here's what I've done:
1. Created a repo on our Bitbucket server to hold all these published daily builds. So one repo that the entire team can go to to see their daily builds.
2. Created a "staging" folder on my local machine where these auto-builds can initially build before they are published. This staging folder is outside of the Flare project.
3. Created a Destination in the Flare project. The destination directory is set to my local "staging" folder on my local machine. Source control points to the repo on Bitbucket I created specifically for the auto-book builds. Push to Remote is enabled and it points to origin. Login Credentials are set.
4. Enabled the destination under the Publishing tab of the Target for one of the training products.
5. Clicked Publish in that Target.
The book generates and then publishes successfully.
Now to get another training product publishing to the same repo on Bitbucket. This is where I run into problems. Here's what I've done:
1. Opened the Target for another training product.
2. Enabled the same destination I enabled for the first training product. Because I want the book to go to the same repo on Bitbucket.
3. Clicked Publish in that Target.
The book generates, but then publishing fails. Error says:
I've gone back to the first product and tried publishing again, and it still works. Both of these training products are using the same Destination, so why would it work for one but not the other? Can multiple targets not use the same destination? Can multiple books not be published to the same Bitbucket repo?"Publish failed: Requires both username and a private key".
The SSH keys are the same ones associated with the Flare project and they work fine to push/pull. So there is nothing wrong with the keys or my password. Besides, when you set up a destination, you point to your keys and enter your login credentials, so if that destination works to publish one of the training product books, it's not possible for that same destination not to work with the second training product book.
Any ideas? This is getting frustrating.