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:
add
scripttask this:#!/bin/bash rm -f agent.properties host=$(hostname) echo "agenthostname=$host" > agent.properties cat agent.propertiesadd
inject bamboo variablestask loads inagent.propertiesfile.in command reference
${bamboo.<namespace>.agenthostname}<namespace>defined in withininject bamboo variablestask.
Comments
Post a Comment