Expose JENKINS_LABELS to slaves.

Review Request #3844 — Created May 8, 2016 and submitted — Latest diff uploaded

jsirois
pants
jsirois/issues/3356_plumb_labels
3356, 3367
7eaeae3...
pants-reviews
patricklaw, stuhood
This also prints out the labels in print_node_info.sh.

 Jenkinsfile                                             |  2 +-
 build-support/aws/ec2/packer/jenkins-slave.customize.sh | 61 ++++++++++++++++++++++++++++++++------------------
 build-support/aws/ec2/packer/jenkins-slave.packages.sh  | 16 ++++++++-----
 build-support/ci/print_node_info.sh                     |  1 +
 4 files changed, 52 insertions(+), 28 deletions(-)

I have the canary running the new AMI and tested via its script
console in jenkins.

First copied over the script:

scp -i ~/.ssh/pantsbuild-jenkins-bot.pem \
  build-support/ci/print_node_info.sh \
  ubuntu@52.90.146.54:/tmp/`

Then ran this in the script console:

println "/tmp/print_node_info.sh".execute().text

Getting a labels: linux canary line
See attached screenshot.

CI went green here:
http://jenkins.pantsbuild.org/job/pantsbuild/job/pants/branch/PR-3367/4/

Loading file attachments...

Loading...