Skip to content

Commit 89f5cae

Browse files
committed
Fix molecule for docker-jenkins role
1 parent 69732f9 commit 89f5cae

File tree

7 files changed

+22
-10
lines changed

7 files changed

+22
-10
lines changed

ansible/group_vars/all.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ jcasc_credential_gitlab_token_one: "MyGitlabToken"
3232
jcasc_credential_github_id_one: "MyGithubId"
3333
jcasc_credential_github_token_one: "MyGithubToken"
3434

35-
jcasc_credential_slack_id_one_one: "MySlackTokenId"
36-
jcasc_credential_slack_token_one_one: "MySlackToken"
35+
jcasc_credential_slack_id_one: "MySlackTokenId"
36+
jcasc_credential_slack_token_one: "MySlackToken"
3737

3838
# Переменные, используемые в секции Jenkins, для последующей конфигурации JCasC:
3939

@@ -72,6 +72,8 @@ jcasc_unclassified_gitlab_url: "https://gitlab.com"
7272
jcasc_unclassified_github_name: "MyGithubConnection"
7373
jcasc_unclassified_github_url: "https://api.github.com"
7474

75+
jcasc_unclassified_slack_workspace: "onlyyourworkspace"
76+
7577
jcasc_unclassified_sl_name: "MySharedLibraries"
7678
jcasc_unclassified_sl_url: "https://github.com/exitfound/docker-autossh.git"
7779
jcasc_unclassified_sl_ssh: "MySshCredentialId"

ansible/roles/docker-jenkins/molecule/group_vars/all.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jcasc_credential_gitlab_token_one: "MyGitlabToken"
1717
jcasc_credential_github_id_one: "MyGithubId"
1818
jcasc_credential_github_token_one: "MyGithubToken"
1919

20-
jcasc_credential_slack_id_one_one: "MySlackTokenId"
21-
jcasc_credential_slack_token_one_one: "MySlackToken"
20+
jcasc_credential_slack_id_one: "MySlackTokenId"
21+
jcasc_credential_slack_token_one: "MySlackToken"
2222

2323
# Переменные, используемые в секции Jenkins, для последующей конфигурации JCasC:
2424

@@ -57,6 +57,8 @@ jcasc_unclassified_gitlab_url: "https://gitlab.com"
5757
jcasc_unclassified_github_name: "MyGithubConnection"
5858
jcasc_unclassified_github_url: "https://api.github.com"
5959

60+
jcasc_unclassified_slack_workspace: "onlyyourworkspace"
61+
6062
jcasc_unclassified_sl_name: "MySharedLibraries"
6163
jcasc_unclassified_sl_url: "https://github.com/exitfound/docker-autossh.git"
6264
jcasc_unclassified_sl_ssh: "MySshCredentialId"

ansible/roles/docker-jenkins/templates/credentials.yaml.j2

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ credentials:
3131
# Создание учетной записи для использования токена Slack:
3232
- string:
3333
scope: GLOBAL
34-
id: "${JCASC_CREDENTIAL_SLACK_ID_ONE}"
35-
secret: "${JCASC_CREDENTIAL_SLACK_TOKEN_ONE}"
34+
id: {{ jcasc_credential_slack_id_one }}
35+
secret: "${jcasc_credential_slack_token_one}"
3636
description: "My Slack Token"

ansible/roles/docker-jenkins/templates/jenkins.yaml.j2

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# В этом файле, в основном, представлены опции, конфигурируемые в таких секциях, как Global System и Global Security:
2+
23
jenkins:
34
systemMessage: "Welcome to the Fully Automation Jenkins by Ivan Medaev:"
45
labelString: "master"

ansible/roles/docker-jenkins/templates/security.yaml.j2

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# В этом файле, в основном, представлены опции, конфигурируемые в различных секциях, связанных с безопасностью Jenkins:
2+
23
security:
34
gitHooks:
45
allowedOnAgents: false

ansible/roles/docker-jenkins/templates/tool.yaml.j2

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# В этом файле, в основном, представлены опции, конфигурируемые в таких секциях, как Global Tool Configuration:
2+
23
tool:
34
mavenGlobalConfig:
45
globalSettingsProvider: "standard"
@@ -27,20 +28,20 @@ tool:
2728
# Этот ряд опций отвечает за установку и настройку NodeJS в Jenkins:
2829
nodejs:
2930
installations:
30-
- name: "nodejs-${JCASC_TOOL_NODEJS_VERSION}"
31+
- name: "nodejs-{{ jcasc_tool_nodejs_version }}"
3132
properties:
3233
- installSource:
3334
installers:
3435
- nodeJSInstaller:
35-
id: "${JCASC_TOOL_NODEJS_VERSION}"
36+
id: {{ jcasc_tool_nodejs_version }}
3637
npmPackagesRefreshHours: 48
3738

3839
# Этот ряд опций отвечает за установку и настройку Go в Jenkins:
3940
go:
4041
installations:
41-
- name: "go-${JCASC_TOOL_GO_VERSION}"
42+
- name: "go-{{ jcasc_tool_go_version }}"
4243
properties:
4344
- installSource:
4445
installers:
4546
- golangInstaller:
46-
id: "${JCASC_TOOL_GO_VERSION}"
47+
id: {{ jcasc_tool_go_version }}

ansible/roles/docker-jenkins/templates/unclassified.yaml.j2

+5
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,8 @@ unclassified:
3030
apiUrl: {{ jcasc_unclassified_github_url }}
3131
credentialsId: {{ jcasc_credential_github_id_one }}
3232
manageHooks: true
33+
34+
# Этот ряд опций конфигурирует дополнительные настройки, связанные с интеграцией между Slack и Jenkins:
35+
slackNotifier:
36+
teamDomain: {{ jcasc_unclassified_slack_workspace }}
37+
tokenCredentialId: {{ jcasc_credential_slack_id_one }}

0 commit comments

Comments
 (0)