forked from nodejs/build
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ansible: move Coverity Scan build tool install
Install the Coverity Scan build tool on the `benchmark` machines instead of the `jenkins-workspace` machines. Refs: nodejs#3723
- Loading branch information
1 parent
0d510d7
commit 4018a21
Showing
5 changed files
with
70 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
|
||
# This role depends on read-secrets to get the token necessary to download the | ||
# Coverity Scan Build Tool. | ||
|
||
dependencies: | ||
- role: read-secrets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
|
||
# Set up tooling required to perform static analysis builds. | ||
# See MANUAL_STEPS.md for further steps if the Build tool is updated. | ||
|
||
# Required to submit builds to Coverity. | ||
- name: Install jq | ||
ansible.builtin.package: | ||
name: jq | ||
state: latest | ||
update_cache: yes | ||
|
||
# Coverity build tool. | ||
- name: Get md5sum for Coverity build tool | ||
ansible.builtin.uri: | ||
body: | ||
md5: 1 | ||
token: "{{ secrets.coverity_token }}" | ||
project: Node.js | ||
body_format: form-urlencoded | ||
method: POST | ||
url: https://scan.coverity.com/download/linux64 | ||
return_content: true | ||
register: coverity_build_tool_meta | ||
|
||
- name: Download Coverity build tool | ||
ansible.builtin.uri: | ||
body: | ||
token: "{{ secrets.coverity_token }}" | ||
project: Node.js | ||
body_format: form-urlencoded | ||
dest: /tmp/ | ||
method: POST | ||
url: https://scan.coverity.com/download/linux64 | ||
register: coverity_build_tool | ||
|
||
- name: Validate checksum of downloaded Coverity build tool | ||
ansible.builtin.stat: | ||
checksum_algorithm: md5 | ||
path: "{{ coverity_build_tool.path }}" | ||
failed_when: coverity_build_tool_file.stat.checksum != coverity_build_tool_meta.content | ||
register: coverity_build_tool_file | ||
|
||
- name: Unpack Coverity build tool | ||
ansible.builtin.unarchive: | ||
creates: "/var/{{ coverity_build_tool.path|regex_search('/tmp/(.+)\\.tar\\.gz', '\\1')|first }}" | ||
dest: /var/ | ||
remote_src: true | ||
src: "{{ coverity_build_tool.path }}" |