<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://159.203.101.162/w/index.php?action=history&amp;feed=atom&amp;title=Autobuilds_for_Libraries</id>
	<title>Autobuilds for Libraries - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://159.203.101.162/w/index.php?action=history&amp;feed=atom&amp;title=Autobuilds_for_Libraries"/>
	<link rel="alternate" type="text/html" href="http://159.203.101.162/w/index.php?title=Autobuilds_for_Libraries&amp;action=history"/>
	<updated>2026-04-27T20:00:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>http://159.203.101.162/w/index.php?title=Autobuilds_for_Libraries&amp;diff=4306&amp;oldid=prev</id>
		<title>Karianna: Created page with &quot;For posterity:  Assumes Red Hat or some equivalent Linux.  Once the system is started, run the following commands:  &lt;code&gt; sudo yum update -y sudo yum install git -y sudo yum...&quot;</title>
		<link rel="alternate" type="text/html" href="http://159.203.101.162/w/index.php?title=Autobuilds_for_Libraries&amp;diff=4306&amp;oldid=prev"/>
		<updated>2018-07-23T11:22:38Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;For posterity:  Assumes Red Hat or some equivalent Linux.  Once the system is started, run the following commands:  &amp;lt;code&amp;gt; sudo yum update -y sudo yum install git -y sudo yum...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;For posterity:&lt;br /&gt;
&lt;br /&gt;
Assumes Red Hat or some equivalent Linux.&lt;br /&gt;
&lt;br /&gt;
Once the system is started, run the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
sudo yum update -y&lt;br /&gt;
sudo yum install git -y&lt;br /&gt;
sudo yum install java-1.8.0-openjdk-devel -y&lt;br /&gt;
sudo yum remove java-1.7.0-openjdk -y&lt;br /&gt;
sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo&lt;br /&gt;
sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key&lt;br /&gt;
sudo yum install jenkins -y&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Before proceeding, in /etc/sysconfig/jenkins,&lt;br /&gt;
&lt;br /&gt;
1. change listen port to 8081&lt;br /&gt;
2. change listen address to 127.0.0.1&lt;br /&gt;
3. change JENKINS_ARGS=&amp;quot;--prefix=/jenkins&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Then run the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
sudo service jenkins start&lt;br /&gt;
sudo yum install -y httpd24 php56 php56-mysqlnd&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then in /etc/httpd/conf/httpd.conf:&lt;br /&gt;
&lt;br /&gt;
change listen to port 8080&lt;br /&gt;
&lt;br /&gt;
Add at bottom:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
ProxyPass         /jenkins  http://localhost:8081/jenkins nocanon&lt;br /&gt;
ProxyPassReverse  /jenkins  http://localhost:8081/jenkins&lt;br /&gt;
ProxyRequests     Off&lt;br /&gt;
AllowEncodedSlashes NoDecode&lt;br /&gt;
&lt;br /&gt;
# Local reverse proxy authorization override&lt;br /&gt;
# Most unix distribution deny proxy by default (ie /etc/apache2/mods-enabled/proxy.conf in Ubuntu)&lt;br /&gt;
&amp;lt;Proxy http://localhost:8081/jenkins*&amp;gt;&lt;br /&gt;
  Order deny,allow&lt;br /&gt;
  Allow from all&lt;br /&gt;
&amp;lt;/Proxy&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then run the following commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
sudo service httpd start&lt;br /&gt;
sudo bash&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Inside the bash shell, run:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
cd /home&lt;br /&gt;
mkdir pcgen1&lt;br /&gt;
cd pcgen1&lt;br /&gt;
mkdir public_html&lt;br /&gt;
chmod 777 public_html&lt;br /&gt;
cd /var/www/html&lt;br /&gt;
ln -s /home/pcgen1/public_html/librepo&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Browse to IP:8080/jenkins&lt;br /&gt;
Give the necessary password (then exit the super user bash session) to Jenkins&lt;br /&gt;
Select the default plugins&lt;br /&gt;
Create the initial user&lt;br /&gt;
&lt;br /&gt;
Once logged into the Jenkins console, go to &amp;quot;Manage Jenkins&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Configure System&lt;br /&gt;
Change Jenkins URL to include /jenkins on the end of the URL&lt;br /&gt;
Add JIRA site&lt;br /&gt;
click Save&lt;br /&gt;
&lt;br /&gt;
Manage Jenkins&lt;br /&gt;
Click &amp;quot;Manage Plugins&amp;quot;&lt;br /&gt;
Select &amp;quot;Install&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Add the following plugins:&lt;br /&gt;
&lt;br /&gt;
Next Build Number&lt;br /&gt;
PMD&lt;br /&gt;
Checkstyle&lt;br /&gt;
Jacoco&lt;br /&gt;
Findbugs&lt;br /&gt;
jDepend&lt;br /&gt;
Static Analysis Collector&lt;br /&gt;
Static Analysis Utilities&lt;br /&gt;
Violations&lt;br /&gt;
JIRA&lt;br /&gt;
disk-usage&lt;br /&gt;
&lt;br /&gt;
click &amp;quot;install&amp;quot;&lt;br /&gt;
Then in the screen that appears, check the box to restart Jenkins after those items are installed (and jobs are idle)&lt;br /&gt;
(Jenkins will restart)&lt;br /&gt;
&lt;br /&gt;
Log back into Jenkins&lt;br /&gt;
&lt;br /&gt;
Manage Jenkins&lt;br /&gt;
Global Tool Configuration&lt;br /&gt;
Set up Java (latest 8.x)&lt;br /&gt;
Set up Gradle (4.0.1)&lt;br /&gt;
Click Save&lt;br /&gt;
&lt;br /&gt;
Go to Home Page&lt;br /&gt;
Create New Job&lt;br /&gt;
  Name is PCGen Base Library&lt;br /&gt;
  Select Freestyle Project&lt;br /&gt;
Click OK&lt;br /&gt;
&lt;br /&gt;
In the screen that appears:&lt;br /&gt;
select &amp;quot;Discard old builds&amp;quot;, then set keep to 25.&lt;br /&gt;
Check GitHub project and enter the URL (https://github.com/pcgen/PCGen-base)&lt;br /&gt;
&lt;br /&gt;
In Build Triggers:&lt;br /&gt;
Check Github hook trigger for GITScm Polling&lt;br /&gt;
Check Poll SCM, set item to &amp;quot;H *3 * * *&amp;quot;&lt;br /&gt;
&lt;br /&gt;
In Build Environment&lt;br /&gt;
Check Delete workspace before build starts&lt;br /&gt;
&lt;br /&gt;
In Source Code Management&lt;br /&gt;
Select Git, add .git file/insert repo&lt;br /&gt;
&lt;br /&gt;
In Build, do &amp;quot;Add Build Step&amp;quot;&lt;br /&gt;
Select Gradle&lt;br /&gt;
  Set Gradle to 4.0.1 (or latest)&lt;br /&gt;
  Click &amp;quot;Advanced&amp;quot;&lt;br /&gt;
    Add Tasks&lt;br /&gt;
    Provide root build script location: ${workspace}/PCGen-base&lt;br /&gt;
  Check Force Gradle User Home to workspace&lt;br /&gt;
&lt;br /&gt;
In Post Build, select &amp;quot;Publish JUnit&amp;quot;&lt;br /&gt;
  Add XML files: PCGen-base/build/test-results/test/*.xml&lt;br /&gt;
&lt;br /&gt;
In Post Build, select &amp;quot;Record Jacoco&amp;quot;&lt;br /&gt;
  Include **/*.class&lt;br /&gt;
  Exclude **/*Test*.class&lt;br /&gt;
    (may need to exclude more in the future...)&lt;br /&gt;
&lt;br /&gt;
In Post Build, select &amp;quot;Report Violations&amp;quot;&lt;br /&gt;
&lt;br /&gt;
In Post Build, Select Email Notification&lt;br /&gt;
  Send for Unstable&lt;br /&gt;
  Sent separate to people who broke the build&lt;br /&gt;
&lt;br /&gt;
click Save&lt;br /&gt;
&lt;br /&gt;
Go back to main console&lt;br /&gt;
Select the project&lt;br /&gt;
Set the next build number&lt;br /&gt;
click submit&lt;br /&gt;
Click Build Now.&lt;/div&gt;</summary>
		<author><name>Karianna</name></author>
		
	</entry>
</feed>