Last active
April 5, 2019 11:52
-
-
Save rtacconi/e233026e9870c2c27556 to your computer and use it in GitHub Desktop.
Install Jenkins Centos 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
yum install -y java | |
wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo | |
rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key | |
yum install -y jenkins | |
yum install -y git | |
service jenkins start/stop/restart | |
chkconfig jenkins on |
So nearly a year, still same issue going on
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
got following error when I try to see jenkins status
[root@915448-tools yum.repos.d]# systemctl status jenkins.service
● jenkins.service - LSB: Jenkins Automation Server
Loaded: loaded (/etc/rc.d/init.d/jenkins; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2018-07-13 06:16:45 EDT; 29s ago
Docs: man:systemd-sysv-generator(8)
Process: 63364 ExecStart=/etc/rc.d/init.d/jenkins start (code=exited, status=1/FAILURE)
Jul 13 06:16:45 915448-tools.newfrontierdata.com jenkins[63364]: at com.sun.akuma.JavaVMArguments.current(JavaVMArguments.java:92)
Jul 13 06:16:45 915448-tools.newfrontierdata.com jenkins[63364]: at com.sun.akuma.Daemon.daemonize(Daemon.java:106)
Jul 13 06:16:45 915448-tools.newfrontierdata.com jenkins[63364]: at com.sun.akuma.Daemon.all(Daemon.java:88)
Jul 13 06:16:45 915448-tools.newfrontierdata.com jenkins[63364]: ... 6 more
Jul 13 06:16:45 915448-tools.newfrontierdata.com runuser[63369]: pam_unix(runuser:session): session closed for user jenkins
Jul 13 06:16:45 915448-tools.newfrontierdata.com jenkins[63364]: [FAILED]
Jul 13 06:16:45 915448-tools.newfrontierdata.com systemd[1]: jenkins.service: control process exited, code=exited status=1
Jul 13 06:16:45 915448-tools.newfrontierdata.com systemd[1]: Failed to start LSB: Jenkins Automation Server.
Jul 13 06:16:45 915448-tools.newfrontierdata.com systemd[1]: Unit jenkins.service entered failed state.
Jul 13 06:16:45 915448-tools.newfrontierdata.com systemd[1]: jenkins.service failed.