Learn how to deploy CI HUB for development and testing purposes, and quality assurance.
Download the package
- Open Jenkins, select the build you want to deploy, and click Artifactory build info :
- Select the desired RPM:
Combine https://artifactory.censhare.com/artifactory and build the path:
Important
You must be logged in at Artifactory. Otherwise, the following error is thrown:
-
- status: 404,
- message: "Resource not found"
-
The result is an absolute path to the package. For example:
https://artifactory.censhare.com/artifactory/rpm-dev/nightly/censhare/branch/team-lemon-ci-hub-integration/censhare-Server-2021.3.0-8centaur20210820.0.x86_64.rpm
Copy the package to the host:
scp FILENAME.rpm root@cihub-dev-css01.censhare.com:
Replace FILENAME with the package name from the previous step.
For example: censhare-Server-2021.3.0-8centaur20210820.0.x86_64.rpmConnect to the host server of the test or dev system with SSH:
ssh root@cihub-dev-css01.censhare.com
Install the package:
yum install FILENAME.rpm
If the insstallation fails, see the Troubleshooting section below for help.
Connect to corpus on the host server:
ssh corpus@cihub-dev-css01.censhare.com
Start the censhare Server:
censhare.rc restart
Do not run this command from root!
In the censhare Admin Client, open Configuration/Modules/CIHUB and double click CIHUB Integration to create a new instance:
Do not add a second active CI HUB instance! If an active CIHUB integration instance is already exists, skip this step.- In the dialog, make sure that Enabled is selected.
- Click OK to save the configuration and close the dialog.
- In the top menu bar of the censhare Admin Client, click Update Server Configuration.
Result
The censhare Server with the CI HUB module is running on the host server. You access the CI HUB portal URL.
Troubleshooting
Error
[root@ip-172-21-10-19 ~]# yum install censhare-Server-2021.3.0-4centaur20210820.0.x86_64.rpm Failed to set locale, defaulting to C Loaded plugins: fastestmirror Examining censhare-Server-2021.3.0-4centaur20210820.0.x86_64.rpm: censhare-Server-2021.3.0-4centaur20210820.0.x86_64 censhare-Server-2021.3.0-4centaur20210820.0.x86_64.rpm: does not update installed package. Error: Nothing to do
Cause
The rpm version that you are trying to install is lexically lower than the installed version.
Solution
Try to run the following command:
yum downgrade FILENAME.rpm