forked from DSpace/DSpace
    
        
        - 
                Notifications
    
You must be signed in to change notification settings  - Fork 21
 
TestingHudson
        Ondřej Košarko edited this page Jan 11, 2016 
        ·
        1 revision
      
    {{toc}}
- installed hudson, changed authorisation
 - http://ufal-point-dev.ms.mff.cuni.cz:8083/
 - added few commands to visudo for user hudson
 - see https://ufal-point-dev.ms.mff.cuni.cz/hudson/xmlui/
 
- create firefox-bin in /usr/bin pointing to /usr/lib/firefox/firefox because selenium wants to start firefox directly (not through .sh)
 - ant + testng + default selenium plugins do not work nicely, so you have to use testng plugins for displaying
 - there should be collections including more than 1 page of results
 - e.g., import #642
 
git submodule init
git submodule update
cp /opt/ufal-configs/local.conf config
cp /opt/ufal-configs/utilities.properties.local  Utilities/conf/
cd scripts
########## 1st timers
#make setup
#sudo make create_utilities_database
#sudo make create_database
##########
make update_utilities
########## 1st timers
#sudo make new_deploy
##########
sudo make deploy_guru
########## 1st timers
###sudo /installations/dspace/hudson/bin/dspace create-administrator
##########
sudo make init_statistics
sudo make init_indicies
sudo /installations/dspace/hudson/bin/dspace update-discovery-index
sudo make restart
# located in /var/lib/hudson/jobs/
whoami
mvn -version
java -version
which mvn
cp /opt/ufal-configs/master-dev.local.conf config/local.conf
cd scripts
#########################################################
# Redeployment
#########################################################
sudo make clean_source || echo "cleaning not successful"
sudo make setup
sudo make deploy_guru
sudo make update_indicies
sudo make update_statistics
sudo make update_discovery
sudo make update_oai
sudo make restart
sudo make restart
you can add to pom.xml e.g.,
+
+<!--
+  UFAL info
+-->
+         <reporting>
+            <plugins>
+              <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-project-info-reports-plugin</artifactId>
+                <version>2.6</version>
+                <reportSets>
+                  <reportSet>
+                    <reports><!-- select reports -->
+                      <report>index</report>
+                    </reports>
+                  </reportSet>
+                </reportSets>
+              </plugin>
+
+                  <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>findbugs-maven-plugin</artifactId>
+                  </plugin>
+            </plugins>
+          </reporting>
+
+
+
     <!--
        Runtime and Compile Time dependencies for DSpace.
     -->
     <build>
         <plugins>
+
+<!--
+  needed for UFAL info
+-->
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-site-plugin</artifactId>
+        <version>3.3</version>
+      </plugin>
+
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
and use findbugs plugin in hudson