Skip to content

Commit

Permalink
ansible: use gcc 4.9 on CentOS 6
Browse files Browse the repository at this point in the history
  • Loading branch information
seishun authored and refack committed Nov 13, 2017
1 parent 7c9bcc3 commit f6f19ab
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
12 changes: 2 additions & 10 deletions setup/centos6/ansible-playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,8 @@
yum: name=* state=latest
tags: general

- name: General | Add SLC devtoolset repo
command: curl -sL http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo -o /etc/yum.repos.d/slc6-devtoolset.repo
tags: general

- name: General | Add SLC devtoolset repo GPG key
command: rpm --import http://linuxsoft.cern.ch/cern/slc6X/x86_64/RPM-GPG-KEY-cern
tags: general

- name: General | Download SLC SCL repo config
command: curl http://linuxsoft.cern.ch/cern/scl/slc6-scl.repo -o /etc/yum.repos.d/slc6-scl.repo
- name: General | Add SCL repo
yum: name=centos-release-scl state=latest
tags: general

- name: General | Install required packages
Expand Down
2 changes: 1 addition & 1 deletion setup/centos6/ansible-vars.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ server_user: iojs
packages:
- git
- java-1.8.0-openjdk
- devtoolset-2
- devtoolset-6
- git19
- libtool
- make
Expand Down
2 changes: 1 addition & 1 deletion setup/centos6/resources/jenkins.sysconfig.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JENKINS_SLAVE_LOG="/home/iojs/$NAME.log"
JENKINS_SECRET="{{ secret }}"
JENKINS_SLAVE_ARGS="-jnlpUrl https://{{ ci_server }}/computer/{{ ansible_hostname }}/slave-agent.jnlp -secret $JENKINS_SECRET"
JENKINS_ENV="OSTYPE=linux-gnu NODE_COMMON_PIPE=/home/iojs/test.pipe"
JENKINS_PATH="/opt/rh/devtoolset-2/root/usr/bin"
JENKINS_PATH="/opt/rh/devtoolset-6/root/usr/bin"
JENKINS_ENV="JOBS={{ ansible_processor_vcpus }} \
HOME=/home/{{ server_user }} \
NODE_TEST_DIR=$HOME/tmp \
Expand Down
2 changes: 1 addition & 1 deletion setup/centos6/resources/start.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh

rm -f nohup.out
NODE_COMMON_PIPE=/home/iojs/test.pipe OSTYPE=linux-gnu nohup scl enable devtoolset-2 'java -jar slave.jar -jnlpUrl https://ci.nodejs.org/computer/iojs-digitalocean-centos6-64-{{id}}/slave-agent.jnlp -secret {{secret}}' &
NODE_COMMON_PIPE=/home/iojs/test.pipe OSTYPE=linux-gnu nohup scl enable devtoolset-6 'java -jar slave.jar -jnlpUrl https://ci.nodejs.org/computer/iojs-digitalocean-centos6-64-{{id}}/slave-agent.jnlp -secret {{secret}}' &
OSTYPE=linux-gnu nohup scl enable git19 'java -jar slave.jar -jnlpUrl https://ci.nodejs.org/computer/iojs-digitalocean-centos6-64-gcc44-{{gcc44_id}}/slave-agent.jnlp -secret {{gcc44_secret}}' &

0 comments on commit f6f19ab

Please sign in to comment.