2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2016-2017 Jim Klimov
16 set name=pkg.fmri value=pkg:/developer/jenkins-common@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
17 set name=pkg.summary value="$(COMPONENT_SUMMARY) - common system data"
18 set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
19 set name=info.upstream-url value=$(COMPONENT_PROJECT_URL)
20 set name=org.opensolaris.consolidation value=$(CONSOLIDATION)
22 license $(COMPONENT_LICENSE_FILE) license='$(COMPONENT_LICENSE)'
24 # Ensure the UID exists till the end, until after the main packages are removed
25 # and in particular do not move databases and logs into lost+found on uninstall
26 # Note the locked user password is NL (not NP) because it has to manage crontab
27 group groupname=jenkins gid=67
28 user ftpuser=false gcos-field="JenkinsCI Reserved UID" group=jenkins password=NL \
29 username=jenkins uid=67 home-dir=/var/lib/jenkins/syshome
31 # These directories can hold some content generated or downloaded at runtime
32 # and can become lost+found when you un/re-install the core package.
33 # On a larger deployment, consider splitting the build and configuration
34 # storage (build history) locations and making that a standalone ZFS dataset
35 # with suitable pool and settings. By default JENKINS_HOME "home" holds the
36 # "build" area too; you can change it after setup, via Web-GUI.
37 # See e.g. https://stackoverflow.com/a/34918545/4715872 for details.
38 # Backups of vital data can be stored in a separate location by this plugin:
39 # https://wiki.jenkins-ci.org/display/jenkins/thinbackup
40 dir group=jenkins owner=jenkins mode=0755 path=var/lib/jenkins
41 dir group=jenkins owner=jenkins mode=0755 path=var/lib/jenkins/home
42 dir group=jenkins owner=jenkins mode=0755 path=var/lib/jenkins/backup
43 dir group=jenkins owner=jenkins mode=0755 path=var/lib/jenkins/build_record
44 dir group=jenkins owner=jenkins mode=0755 path=var/lib/jenkins/build_workspace
45 dir group=jenkins owner=jenkins mode=0755 path=var/lib/jenkins/syshome
46 dir group=jenkins owner=jenkins mode=0700 path=var/lib/jenkins/syshome/.ssh
48 # Note: java8+ is required since 2017, not supported since 2022
49 # java11/17 is required since 2022 (java21 is acceptable since Aug 2023)
50 # https://www.jenkins.io/doc/book/platform-information/support-policy-java/
51 # This may be JRE for the server, though JDK also suffices :)
52 depend fmri=__TBD pkg.debug.depend.file=usr/bin/java type=require