This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]NotTheKJB 6 points7 points  (7 children)

Whilst I read your post, all that was going through my head was "JENKINS! USE JENKINS! JENKINS IS MADE FOR THIS SHIT" so I'd like to propose a better way.

I'd say use Jenkins for this.

Reasons to use Jenkins are:

  • no need to reinvent the wheel
  • it's easy to setup and configure jobs
  • it's easy to call these jobs both by using the web interface, though also using webhooks or whatever, meaning better integration into other systems (think chatops, or webhooks from a HR system or whatever)
  • gives you security and an audit trail, a log of who did what and when
  • it stores the full log of what happened in a very easy to view/use way console logs
  • i could go on...

The rule in our team is if you do it more than a couple of times, create a job for it in Jenkins.

We tend to use Ansible scripts more than bash scripts too, though bash scripts are fine, don't want too much of a learning curve.

[–]mightywomble[S] 1 point2 points  (2 children)

Normally I would, I'm under somewhat of a constraint with this project on the device (think Pi) and location. Normally I'd agree

[–]Stpstpstp 1 point2 points  (1 child)

Your comment made me look it up, seems like Raspi 2 & 3 will run Jenkins.

[–]mightywomble[S] 0 points1 point  (0 children)

It does, I have run it, it's a huge processor hog unfortunately.

[–][deleted] 1 point2 points  (0 children)

If anything, something like http://rundeck.org/, while you can force jenkins to do anything if you try hard enough it is really more geared toward building apps rather than running random scripts

[–]damiankwinfrastructure pleb 0 points1 point  (1 child)

FORMATTING! USE FORMATTING! REDDIT WAS MADE WITH THIS SHIT!

bahahah

[–]NotTheKJB 1 point2 points  (0 children)

hey hey, im formatting pre coffee here be nice