Expose JENKINS_LABELS to slaves.

Review Request #3844 - Created May 8, 2016 and submitted

Information
John Sirois
pants
jsirois/issues/3356_plumb_labels
3356, 3367
7eaeae3...
Reviewers
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/

Files


John Sirois
John Sirois
John Sirois
John Sirois
John Sirois
Review request changed

Status: Closed (submitted)

Change Summary:

Now on master:

git log -1 origin/master
commit b0e212ec55fdd0409991bab2e07b44a368486e9c
Author: John Sirois <john.sirois@gmail.com>
Date:   Sun May 8 15:20:45 2016 -0600

    Expose JENKINS_LABELS to slaves.
    
    This also prints out the labels in print_node_info.sh.
    
    Testing Done:
    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:
    ```groovy
    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/
    
    Bugs closed: 3356, 3367
    
    Reviewed at https://rbcommons.com/s/twitter/r/3844/
Loading...