On a system running OpenIndiana Hipster
Jenkins can be installed in either the local or global zone using the
Image Packaging
System
(IPS).
|
Disclaimer: This platform is NOT officially supported by the Jenkins team,
use it at your own risk. Packaging and integration described in this section
is maintained by the OpenIndiana Hipster team, bundling the generic
jenkins.war
to work in that operating environment.
|
For the common case of running the newest packaged weekly build as a standalone (Jetty) server, simply execute:
pkg install jenkins
svcadm enable jenkins
The common packaging integration for a standalone service will:
-
Create a
jenkins
user to run the service and to own the directory structures under
/var/lib/jenkins
.
-
Pull the Java package and other packages required to execute Jenkins, including
the
jenkins-core-weekly
package with the latest
jenkins.war
.
-
Set up Jenkins as an SMF service instance (
svc:/network/http:jenkins
) which
can then be enabled with the
svcadm
command demonstrated above.
-
Set up Jenkins to listen on port 8080.
-
Configure the log output to be managed by SMF at
/var/svc/log/network-http:jenkins.log
.
Once Jenkins is running, consult the log
(
/var/svc/log/network-http:jenkins.log
) to retrieve the generated
administrator password for the initial set up of Jenkins, usually it will be
found at
/var/lib/jenkins/home/secrets/initialAdminPassword
. Then navigate to
localhost:8080 to
complete configuration of the
Jenkins instance
.
To change attributes of the service, such as environment variables like
JENKINS_HOME
or the port number used for the Jetty web server, use the
svccfg
utility:
svccfg -s svc:/network/http:jenkins editprop
svcadm refresh svc:/network/http:jenkins
You can also refer to
/lib/svc/manifest/network/jenkins-standalone.xml
for more
details and comments about currently supported tunables of the SMF service.
Note that the
jenkins
user account created by the packaging is specially privileged
to allow binding to port numbers under 1024.
The current status of Jenkins-related packages available for the given release
of OpenIndiana can be queried with:
Upgrades to the package can be performed by updating the entire operating
environment with
pkg update
, or specifically for Jenkins core software with:
pkg update jenkins-core-weekly
|
Procedure for updating the package will restart the currently running Jenkins
process. Make sure to prepare it for shutdown and finish all running jobs
before updating, if needed.
|