Skip to content

Commit f6f19ab

Browse files
seishunrefack
authored andcommitted
ansible: use gcc 4.9 on CentOS 6
1 parent 7c9bcc3 commit f6f19ab

File tree

4 files changed

+5
-13
lines changed

4 files changed

+5
-13
lines changed

setup/centos6/ansible-playbook.yaml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,8 @@
1212
yum: name=* state=latest
1313
tags: general
1414

15-
- name: General | Add SLC devtoolset repo
16-
command: curl -sL http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo -o /etc/yum.repos.d/slc6-devtoolset.repo
17-
tags: general
18-
19-
- name: General | Add SLC devtoolset repo GPG key
20-
command: rpm --import http://linuxsoft.cern.ch/cern/slc6X/x86_64/RPM-GPG-KEY-cern
21-
tags: general
22-
23-
- name: General | Download SLC SCL repo config
24-
command: curl http://linuxsoft.cern.ch/cern/scl/slc6-scl.repo -o /etc/yum.repos.d/slc6-scl.repo
15+
- name: General | Add SCL repo
16+
yum: name=centos-release-scl state=latest
2517
tags: general
2618

2719
- name: General | Install required packages

setup/centos6/ansible-vars.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ server_user: iojs
33
packages:
44
- git
55
- java-1.8.0-openjdk
6-
- devtoolset-2
6+
- devtoolset-6
77
- git19
88
- libtool
99
- make

setup/centos6/resources/jenkins.sysconfig.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ JENKINS_SLAVE_LOG="/home/iojs/$NAME.log"
44
JENKINS_SECRET="{{ secret }}"
55
JENKINS_SLAVE_ARGS="-jnlpUrl https://{{ ci_server }}/computer/{{ ansible_hostname }}/slave-agent.jnlp -secret $JENKINS_SECRET"
66
JENKINS_ENV="OSTYPE=linux-gnu NODE_COMMON_PIPE=/home/iojs/test.pipe"
7-
JENKINS_PATH="/opt/rh/devtoolset-2/root/usr/bin"
7+
JENKINS_PATH="/opt/rh/devtoolset-6/root/usr/bin"
88
JENKINS_ENV="JOBS={{ ansible_processor_vcpus }} \
99
HOME=/home/{{ server_user }} \
1010
NODE_TEST_DIR=$HOME/tmp \

setup/centos6/resources/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
22

33
rm -f nohup.out
4-
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}}' &
4+
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}}' &
55
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 commit comments

Comments
 (0)