nixpkgs/nixos/modules/services
Bjørn Forsman 8ebfd5c45c nixos/jenkins-job-builder: stop reloadScript on error
Currently there are two calls to curl in the reloadScript, neither which
check for errors. If something is misconfigured (like wrong authToken),
the only trace that something wrong happened is this log message:

  Asking Jenkins to reload config
  <h1>Bad Message 400</h1><pre>reason: Illegal character VCHAR='<'</pre>

The service isn't marked as failed, so it's easy to miss.

Fix it by passing --fail to curl.

While at it:
* Add $curl_opts and $jenkins_url variables to keep the curl command
  lines DRY.
* Add --show-error to curl to show short error message explanation when
  things go wrong (like HTTP 401 error).
* Lower-case the $CRUMB variable as upper case is for exported environment
  variables.

The new behaviour, when having wrong accessToken:

  Asking Jenkins to reload config
  curl: (22) The requested URL returned error: 401

And the service is clearly marked as failed in `systemctl --failed`.
2018-12-03 17:07:29 +01:00
..
admin salt: Restart on config changes 2018-10-15 19:59:25 -07:00
amqp rabbitmq module: Update documentation after proofreading 2018-11-03 19:19:04 +01:00
audio nixos/mpd: allow storage plugins in musicDirectory 2018-08-03 21:36:38 +02:00
backup nixos/borgbackup: allow paths to be empty or relative (#51275) 2018-11-30 17:37:50 +01:00
cluster nixos/kubernetes: allow to disable clusterCidr 2018-11-26 16:36:30 +01:00
computing nixos/slurm: add maintainer to module and test 2018-10-30 19:50:52 +01:00
continuous-integration nixos/jenkins-job-builder: stop reloadScript on error 2018-12-03 17:07:29 +01:00
databases nixos/cockroachdb: supply defaultText for the package option 2018-12-02 20:50:57 -06:00
desktops Merge pull request #41887 from gmarmstrong/fix/seahorse-update 2018-11-21 15:15:32 -06:00
development nixos/jupyter: wait for network.target 2018-11-06 20:40:20 +01:00
editors Treewide: use HTTPS on GNU domains 2018-12-02 15:51:59 +01:00
games nixos/minetest fix: add missing uid/gid for minetest 2018-11-11 12:47:09 +01:00
hardware nixos/upower: lockdown service using upstream settings 2018-10-29 08:09:52 -05:00
logging journaldriver: 1.0.0 -> 1.1.0 (#48106) 2018-10-09 23:45:43 +02:00
mail roundcube: apply code review suggestions 2018-11-28 18:53:37 +01:00
misc Merge pull request #48423 from charles-dyfis-net/bees 2018-12-02 18:38:47 +01:00
monitoring Merge pull request #51001 from c0bw3b/cleanup/more-https 2018-11-25 16:22:34 +01:00
network-filesystems Merge pull request #49736 from nh2/glusterfs-service-simple-unit-no-forking 2018-11-14 12:35:57 +01:00
networking nixos/chrony: fix misplaced ConditionCapability= directive 2018-12-02 20:32:47 -06:00
printing cups-googlecloudprint: init at 20160502 2018-10-11 09:19:58 +01:00
scheduling nixos/modules: users.(extraUsers|extraGroup->users|group) 2018-06-30 03:02:58 +02:00
search elk: 6.3.2 -> 6.5.1 2018-12-01 12:47:12 +01:00
security nixos/tor: add HiddenServiceVersion option 2018-11-23 20:53:02 +00:00
system treewide: systemd timeout arguments to use infinity instead of 0 (#50934) 2018-11-25 13:33:22 +01:00
torrent nixos/transmission: fix AppArmor profile to include keyutils 2018-08-31 17:19:29 +02:00
ttys nixos/kmscon: Add autologin option 2018-09-29 21:55:14 +02:00
web-apps selfoss (service): fix port in service config (#50411) 2018-11-15 19:22:20 +00:00
web-servers nixos/mediawiki: fetch over https 2018-11-24 23:18:26 +01:00
x11 nixos/urxvtd: remove socket activation 2018-11-25 15:25:19 -05:00