]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ansible: Set file.encoding=UTF-8 1915/head
authorDavid Galloway <dgallowa@redhat.com>
Wed, 29 Sep 2021 15:37:02 +0000 (11:37 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Wed, 29 Sep 2021 15:40:43 +0000 (11:40 -0400)
Requested by Ernesto via e-mail.  See https://stackoverflow.com/questions/27960996/jenkins-console-output-characters

Signed-off-by: David Galloway <dgallowa@redhat.com>
ansible/examples/slave.yml
ansible/templates/systemd/jenkins.service.j2

index 6661427458f685cf77d63583c68c6cdd5ac52dd9..4f255bb019b08b7a8390ee088dc98a4dade800e6 100644 (file)
         ansible_python_interpreter: /usr/bin/python
       when: (ansible_os_family == "RedHat" and ansible_distribution_major_version|int <= 7) or
             (ansible_os_family == "Debian" and ansible_distribution_major_version|int <= 16)
+      tags:
+        - register
 
     - set_fact:
         pip_version: pip3
       when: (ansible_os_family == "RedHat" and ansible_distribution_major_version|int >= 8) or
             (ansible_os_family == "Debian" and ansible_distribution_major_version|int >= 18) or
             ansible_os_family == "Suse"
+      tags:
+        - register
 
     - name: Install six, latest one
       pip:
         state: latest
         executable: "{{ pip_version }}"
       when: ansible_os_family != "Suse"
+      tags:
+        - register
 
     - name: Install python-jenkins
       # https://review.openstack.org/460363
         name: python-jenkins
         version: 0.4.15
         executable: "{{ pip_version }}"
+      tags:
+        - register
 
     ## LIBVIRT SERVICE TASKS
     - name: start libvirt services
index badcfc12dbdf1580f934ea43a9ed5e3b51bd4fb7..a71de7ca2746e061a46c8b3a5263cd10b0c09a9e 100644 (file)
@@ -11,6 +11,7 @@ WantedBy=multi-user.target
 Type=simple
 User={{ jenkins_user }}
 ExecStart=/usr/bin/java \
+          -Dfile.encoding=UTF8 \
           -jar /home/{{ jenkins_user }}/slave.jar \
           -jnlpUrl {{ api_uri }}/computer/{{ ansible_default_ipv4.address }}+{{ nodename }}/slave-agent.jnlp \
           -jnlpCredentials @/etc/systemd/system/jenkins.secret