google app engine - mvn appengine:update from Bamboo requires credentials -


i have maven project updates appspot war, when build executed atlassian cloud bamboo oauth authentication prompts access tokens.

14-may-2015 00:17:18    [info] retrieving google app engine java sdk maven 14-may-2015 00:17:18    [info] updating google app engine application 14-may-2015 00:17:18    [info] running -v 1.9.20 --oauth2 update /mnt/bamboo-ebs/bamboo-agent/build-dir/[project path]-1-snapshot 14-may-2015 00:17:21    please open following url in browser: 14-may-2015 00:17:21      https://accounts.google.com/o/oauth2/auth?access_type=offline&approval_prompt=force&client_id=xxxxxxxx.apps.googleusercontent.com&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code&scope=https://www.googleapis.com/auth/appengine.admin%20https://www.googleapis.com/auth/cloud-platform 

opening url i'm able access token, i'm not able enter build hangs until cancelled.

how should setup authentication?

add oath credentials ebs attached volume , copy them place when agent started.

  1. configure bamboo ebs attached volumes
  2. ssh into instance, su bamboo user
  3. download appengine sdk
  4. run appcfg prompted authentication
    1. appcfg -s my-app.appspot.com version
    2. follow instructions oauth create /home/bamboo/.appcfg_oauth2_tokens_java
  5. mkdir /mnt/bamboo-ebs/appengine
  6. cp /home/bamboo/.appcfg_oauth2_tokens_java /mnt/bamboo-ebs/appengine
  7. edit /mnt/bamboo-ebs/bin/customize-extras.sh (see docs) adding following
    1. cp /mnt/bamboo-ebs/appengine/.appcfg_oauth2_tokens_java /home/bamboo/
    2. chown bamboo:bamboo /home/bamboo/.appcfg_oauth2_tokens_java
  8. take snapshot of volume , assign snapshot bamboo instance configuration

the next time bamboo starts new instance customize-extras.sh run , necessary credentials in place mvn appengine:update find.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -