Skip to content

Commit

Permalink
Bump systemd service timeout to allow enough time for Jenkins to start
Browse files Browse the repository at this point in the history
  • Loading branch information
hloeung committed Dec 14, 2023
1 parent cc508e7 commit 5445f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/charms/layer/jenkins/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def _set_prefix(self, prefix):
the prefix config is unset.
"""
# Since version 2.332.1 Jenkins is not loading env vars from the default config file
overrides_content = '# This file is managed by Juju. Do not edit manually.\n[Service]\nEnvironment="JENKINS_PREFIX={}"\n'.format(prefix)
overrides_content = '# This file is managed by Juju. Do not edit manually.\n[Service]\nEnvironment="JENKINS_PREFIX={}"\nTimeoutSec=900\n'.format(prefix)

host.mkdir(os.path.dirname(paths.SERVICE_CONFIG_FILE_OVERRIDE), perms=0o751)
with open(os.open(paths.SERVICE_CONFIG_FILE_OVERRIDE, os.O_CREAT | os.O_WRONLY, 0o644), 'w') as overrides_file:
Expand Down

0 comments on commit 5445f7a

Please sign in to comment.