Authentication
There are two authentication mechanisms for using Fladle.
It is recommended to use user authentication on local development machines to avoid sharing credentials and a service account on CI.
User authentication
Credentials are stored in ~/.flank
.
./gradlew flankAuth
- Sign in to web browser.
- Specify projectId in fladle configuration
./gradlew runFlank
Service account credentials
-
Create a service account. Service accounts aren't subject to spam checks or captcha prompts, which could otherwise block your CI builds. Create a service account with an Editor role in the Google Cloud Platform console.
-
Enable required APIs. After logging in using the service account: In the Google Developers Console API Library page, enable the Google Cloud Testing API and Cloud Tool Results API. To enable these APIs, type these API names into the search box at the top of the console, and then click Enable API on the overview page for that API.
-
After creating the account go to
Keys
, clickAdd Key
->Create a new Key
. SelectJSON
for the key type. This will download the json credentials. -
Configure the Fladle extension serviceAccountCredentials to point to the credentials.
Above instructions are based on Google instruction for authenticating with CI.
See also Flank's instructions for authenticating with a service account.