RaspberryPiにJenkinsを入れて高級なcronの代わりに使う http://qiita.com/or2/items/9be897ddfe73854ba578
Jenkinsのコンソール出力が読みづらくなっている人向けのメモ http://qiita.com/dakuton/items/b3e0a329378e9e4e9486
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install jenkins
sudo nano /etc/default/jenkins
JAVA_ARGS="-Xmx256m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8"
sudo service jenkins restart
http://[Raspberry PiのIPアドレス]:8080
sudo /sbin/iptables -I INPUT -p tcp -m tcp --dport 80 -j ACCEPT
sudo apt-get install iptables-persistent
sudo iptables-save | sudo tee /etc/iptables/rules.v4
=====ここからがうまくいったやつ
sudo nano /etc/init.d/jenkins
DAEMON_ARGS="--name=$NAME --inherit --env=JENKINS_HOME=$JENKINS_HOME --output=$JENKINS_LOG --pidfile=$PIDFILE"
HTTP_PORT=8000
JENKINS_ARGS="--httpPort=$HTTP_PORT"
check_tcp_port "http" "$HTTP_PORT" "8000" || return 2
http://irukanobox.blogspot.jp/2017/03/raspberry-pifirewalld.html
sudo apt-get install firewalld
sudo firewall-cmd --add-port=8080/tcp --zone=public --permanent
sudo firewall-cmd --add-port=50022/tcp --zone=public --permanent
sudo firewall-cmd --add-port=8000/tcp --zone=public --permanent
sudo firewall-cmd --reload
sudo firewall-cmd --zone=public --change-interface=wlan0
sudo firewall-cmd --list-all
sudoを許可する http://qiita.com/gozuqi/items/6ebb2e6a4d49dfeb080f