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

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -