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