Uninstalling the adapter includes several steps such as
deleting server friends, additions, hooks, and license files.
Procedure
- Delete server friends.
- Point your web browser to https://fully
qualified hostname:port/ccm/admin.
- In the Communication section, click Consumers(Inbound).
- On the OAuth Consumers page, in
the Authorized Keys section, hover over a consumer
name for your Git adapter and click the Remove Consumer icon
in the Actions column.
- Confirm that you want to delete the consumer name.
- Unregister the Rational® Adapter
for Git from JTS.
- Point your web browser to https://fully
qualified hostname:port/jts/admin.
- On the Administration page, click
the Server tab.
- In the left pane, in the Configuration section, click Registered
Applications.
- In the Registered Applications section, hover over the
application name /gitAdapter and click the Remove
Application icon in the Actions column.
- Click OK.
- Delete Gitweb additions.
Important: In
adapter software 1.1 or earlier the ./rlia folder
was named ./static folder in the Gitweb server
directory.
- Go to your Gitweb installation folder. For
example, /usr/share/gitweb
- Delete the./rlia folder in your
Gitweb installation folder.
- Delete the gitweb.conf variables.
The gitweb.conf file is typically found in your /etc folder.
In that file, for adapter 1.1.0.1 or later software remove the following
lines:
push @stylesheets, "https://fully qualified hostname:port/gitAdapter/web/client/client/OSLC.css";
our $site_header = "./rlia/GitwebSiteHeader.html";
- Delete Git receive hooks.
- Go to the hooks directory for each of your Gitweb shared
repositories. For example, /home/git/repos/first.git/hooks
- Delete the symbolic links for these hook files: pre-receive, reprocess.pl,
and rtc_credentials.pl, and the rtchookreprocess directory
if it exists.
- Delete the Gerrit additions.
- Go to your Gerrit installation folder. For
example, /usr/share/Gerrit
- Delete the /static folder in your
Gerrit installation folder.
- Go to the /etc folder.
- Delete the GerritSiteHeader.html and GerritSite.css files.
- Delete the Gerrit receive hooks.
- Go to your Gerrit installation hooks folder. For example, /usr/share/Gerrit/hooks.
- Delete the symbolic links for these hook files: patchset-created, gerrit_reprocess.pl,
and rtc_credentials.pl, as well as the rtchookreprocess directory
if it exists.
- Delete the Rational Adapter
for Git database.
Consult your database documentation
for the commands to delete the database that you set up for the Git
adapter. If you used a Derby database for the Git adapter, the Derby
database is deleted when you do step 11.
- Uninstall the product by using Installation Manager or
a command.
The following sample response file is used to run a silent
uninstall. You can find this response file where you extracted the
adapter. If you removed the extracted adapter files, you can create
a response file by following this code.
Remember: Change
the value of the <offering id='com.ibm.rational.oslc.adapter.git"
profile="IBM Collaborative Lifecycle Management" features="main.feature"/> profile
property to the package name for the Jazz™ Team
Server that you used when you installed the adapter.
<?xml version="1.0" encoding="UTF-8"?>
<agent-input>
<uninstall modify='false'>
<offering id='com.ibm.rational.oslc.adapter.git' profile='IBM Collaborative Lifecycle Management'/>
</uninstall>
</agent-input>
- For PVU licensing only, delete any license files that you
copied to the properties/version directory for
these locations:
- One or more Change and Configuration Management application servers
that the adapter communicates with
- One or more Gitweb and Gerrit servers that the adapter communicates
with
- For CAL licensing only, remove the license activation key.
- Point your web browser to https://fully
qualified hostname:port/jts/admin
- From the Server Administration page,
click License Key Management .
- On the License Key Management page,
in the Client Access License Types area, hover over a license and
click Remove license in the Actions column.
The adapter license is removed.
- Check the Jazz Team
Server directory where you installed the adapter. For
example, /opt/ibm/JazzInstallDir/server/conf and
delete the gitAdapter directory.
If you deployed the adapter web application on WebSphere® Application Server,
then follow the remaining steps.
- To uninstall the adapter web application by using the console:
- Open the Admin console.
- Click .
- Select the check box next to gitAdapter;
click Uninstall. Click OK. The file is uninstalled from the application server.
- Delete all temporary files and directories in the WebSphere Application Server
profile:
- Go to WASInstallDir/profiles/profile
name/temp/node name/server1 and
delete the gitAdapter directory.
- Go to WASInstallDir/profiles/profile
name/temp/wscache and delete the gitAdapter directory.