Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
4f78d469
Unverified
Commit
4f78d469
authored
Jul 13, 2018
by
Stu Young
Committed by
GitHub
Jul 13, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4684 from edx/estute/TE-2618
install and configure email extension plugin on jenkins
parents
afdf67ad
046a0c6e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
0 deletions
+57
-0
playbooks/roles/jenkins_build/defaults/main.yml
+4
-0
playbooks/roles/jenkins_build/meta/main.yml
+1
-0
playbooks/roles/jenkins_common/defaults/main.yml
+28
-0
playbooks/roles/jenkins_common/templates/config/email_ext_config.yml.j2
+24
-0
No files found.
playbooks/roles/jenkins_build/defaults/main.yml
View file @
4f78d469
...
...
@@ -19,6 +19,7 @@ build_jenkins_configuration_scripts:
-
4configureMaskPasswords.groovy
-
4configureSecurity.groovy
-
4configureSplunk.groovy
-
5configureEmailExtension.groovy
-
5createLoggers.groovy
# plugins
...
...
@@ -80,6 +81,9 @@ build_jenkins_plugins_list:
-
name
:
'
ec2'
version
:
'
1.28'
group
:
'
org.jenkins-ci.plugins'
-
name
:
'
email-ext'
version
:
'
2.62'
group
:
'
org.jenkins-ci.plugins'
-
name
:
'
envinject'
version
:
'
2.1.5'
group
:
'
org.jenkins-ci.plugins'
...
...
playbooks/roles/jenkins_build/meta/main.yml
View file @
4f78d469
...
...
@@ -28,3 +28,4 @@ dependencies:
jenkins_common_splunk_event_source
:
'
{{
build_jenkins_splunk_event_source
}}'
jenkins_common_splunk_enabled
:
'
{{
BUILD_JENKINS_SPLUNK_ENABLED
}}'
jenkins_common_splunk_file_path
:
'
{{
build_jenkins_splunk_file_path
}}'
jenkins_common_email_replyto
:
'
{{
JENKINS_MAILER_REPLY_TO_ADDRESS
}}'
playbooks/roles/jenkins_common/defaults/main.yml
View file @
4f78d469
...
...
@@ -27,6 +27,7 @@ jenkins_common_configuration_scripts: []
jenkins_common_non_plugin_template_files
:
-
credentials
-
ec2_config
-
email_ext_config
-
ghprb_config
-
git_config
-
github_config
...
...
@@ -189,6 +190,33 @@ JENKINS_MAILER_DEFAULT_SUFFIX: '@example.com'
JENKINS_MAILER_SMTP_AUTH_USERNAME
:
'
'
JENKINS_MAILER_SMTP_AUTH_PASSWORD
:
'
'
# email ext plugin
jenkins_common_email_advanced_properties
:
'
'
jenkins_common_email_content_type
:
'
text/plain'
jenkins_common_default_email_subject
:
'
${PROJECT_NAME}
#${BUILD_NUMBER}
is
${BUILD_STATUS}'
jenkins_common_email_emergency_reroute
:
'
'
jenkins_common_email_replyto
:
'
'
jenkins_common_email_debug_mode
:
'
false'
jenkins_common_email_max_attachment_size
:
10
jenkins_common_email_default_recipients
:
'
'
jenkins_common_email_add_precedence_bulk
:
'
true'
jenkins_common_email_allowed_domains
:
'
'
jenkins_common_email_excluded_committers
:
'
'
jenkins_common_email_require_admin_for_template_testing
:
'
true'
jenkins_common_email_watching_enabled
:
'
'
jenkins_common_email_allow_unregistered_enabled
:
'
'
jenkins_common_email_use_list_id
:
'
'
jenkins_common_email_list_id
:
'
'
jenkins_common_email_triggers
:
-
'
AbortedTrigger'
-
'
FailureTrigger'
-
'
FixedTrigger'
# if you wish to set the following 3 values, supply paths to
# individual files with the content you want to specify
jenkins_common_email_default_body_path
:
'
'
jenkins_common_email_default_presend_script_path
:
'
'
jenkins_common_email_default_postsend_script_path
:
'
'
# mask passwords
JENKINS_MASK_PASSWORDS_CLASSES
:
[]
JENKINS_MASK_PASSWORDS_PAIRS
:
[]
...
...
playbooks/roles/jenkins_common/templates/config/email_ext_config.yml.j2
0 → 100644
View file @
4f78d469
---
ADV_PROPERTIES: '{{ jenkins_common_email_advanced_properties }}'
DEFAULT_CONTENT_TYPE: '{{ jenkins_common_email_content_type }}'
DEFAULT_SUBJECT: '{{ jenkins_common_default_email_subject }}'
DEFAULT_BODY_PATH: '{{ jenkins_common_email_default_body_path }}'
EMERGENCY_REROUTE: '{{ jenkins_common_email_emergency_reroute }}'
DEFAULT_REPLYTO: '{{ jenkins_common_email_replyto }}'
DEFAULT_PRESEND_SCRIPT_PATH: '{{ jenkins_common_email_default_presend_script_path }}'
DEFAULT_POSTSEND_SCRIPT_PATH: '{{ jenkins_common_email_default_postsend_script_path }}'
DEBUG_MODE: '{{ jenkins_common_email_debug_mode }}'
MAX_ATTACHMENT_SIZE: '{{ jenkins_common_email_max_attachment_size }}'
DEFAULT_RECIPIENTS: '{{ jenkins_common_email_default_recipients }}'
ADD_PRECEDENCE_BULK: '{{ jenkins_common_email_add_precedence_bulk }}'
ALLOWED_DOMAINS: '{{ jenkins_common_email_allowed_domains }}'
EXCLUDED_COMMITTERS: '{{ jenkins_common_email_excluded_committers }}'
REQUIRE_ADMIN_FOR_TEMPLATE_TESTING: '{{ jenkins_common_email_require_admin_for_template_testing }}'
WATCHING_ENABLED: '{{ jenkins_common_email_watching_enabled }}'
ALLOW_UNREGISTERED_ENABLED: '{{ jenkins_common_email_allow_unregistered_enabled }}'
USE_LIST_ID: '{{ jenkins_common_email_use_list_id }}'
LIST_ID': '{{ jenkins_common_email_list_id }}'
TRIGGERS:
{% for trigger in jenkins_common_email_triggers %}
- '{{ trigger }}'
{% endfor %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment