protractor - Atlassian Bamboo - Build Agent IP as variable? -


within atlassian bamboo, possible hold of ip address (or dns name) of build agent task being executed on?

it's intention use execute functional tests machine using grunt , protractor.

e.g. grunt acceptancetests --baseurl=${bamboo.buildagent.ip}

you should able set bamboo agent ip/hostname agent capability , reference within build.

alternatively can this:

  1. add script task this:

    #!/bin/bash rm -f agent.properties host=$(hostname) echo "agenthostname=$host" > agent.properties cat agent.properties 
  2. add inject bamboo variables task loads in agent.properties file.

  3. in command reference ${bamboo.<namespace>.agenthostname} <namespace> defined in within inject bamboo variables task.


Comments

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Restarting Supervisor and effect on FlaskSocketIO -

php - Mongodb connectivity error -