On 4/9/19 7:46 AM, [email protected] wrote: > Hi, > > I am working on using the ONAP ci-managment subproject to build ONAP > projects in a quite isolated lab environment. > > For now I am struggling with the JJB configuration and the mvn-settings > parameter set in each jjb project (eg projects oparent and oparent-clm, > as set in ci-management/jjb/oparent/oparent.yaml). > I understand these are configuration files provided to jenkins using the > Config File Provider plugin, but I have no idea how to provide them and > what to put inside. > > Any idea or documentation ? > Thanks,
Hmm... looks like we may not have it documented (at least not in the
places I'm looking). So, here's what I can say about it.
global-jjb (which ci-management) uses expects the following plugins be
installed [0]. The settings files are managed by the 'Config File
Provider' inside Jenkins. We provide 2 different files in the system.
The first file is a global-settings file (file type 'Global Maven
settings.xml') and we use the fileID of 'global-settings'
This file contains all the mirrors and profiles that we define at a
global level.
For instance, the one that ONAP is currently using is attached.
The second file that we provide is a project specific settings file
(file type 'Maven settings.xml') and this file contains the credentials
for the various serverIds that are used.
We title our files as "${repo-code}-settings" and then inside the
configuration we have a serverId and credential connection for each
option that is needed. We always leave the boilerplate file along for
this file.
At present for ONAP we appear to be defining the following serverId sets:
ecomp-releases
ecomp-snapshots
ecomp-site
ecomp-staging
nexus3.onap.org:10001
nexus3.onap.org:10002
nexus3.onap.org:10003
nexus3.onap.org:10004
ecomp-raw
There may be others, but I only glanced at a couple of the configuration
files for ONAP.
Finally, if you're using the log shipping features of our jobs, then a
settings file of the ID 'jenkins-log-archives-settings' is expected and
it should contain a serverId of 'logs' with the appropriate credentials.
That would be linked into via the LOGS_SERVER and LOGS_REPO_URL global
vars which we control using our config management jobs and managed via
the jenkins-config section.
See [1] for documentation that we use when we bootstrap a new Jenkins
system for a project for a better understanding of how everything goes
together.
[0]
https://docs.releng.linuxfoundation.org/projects/global-jjb/en/latest/install.html#jenkins-configuration
[1] https://docs.releng.linuxfoundation.org/en/latest/infra/bootstrap.html
-Andy-
--
Andrew J Grimberg
Manager Release Engineering
The Linux Foundation
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#16572): https://lists.onap.org/g/onap-discuss/message/16572
Mute This Topic: https://lists.onap.org/mt/31014325/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
<?xml version="1.0" encoding="UTF-8"?> <!-- vi: set et smarttab sw=2 tabstop=2: --> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <mirrors> <mirror> <id>release-mirror</id> <name>Local Nexus mirror for builds</name> <url>${env.NEXUSPROXY}/content/repositories/public/</url> <mirrorOf>central</mirrorOf> </mirror> </mirrors> <profiles> <profile> <id>onap-settings</id> <properties> <onap.nexus.url>https://nexus.onap.org</onap.nexus.url> <onap.nexus.rawrepo.baseurl.upload>https://nexus.onap.org/content/sites/raw</onap.nexus.rawrepo.baseurl.upload> <onap.nexus.rawrepo.baseurl.download>https://nexus.onap.org/service/local/repositories/raw/content</onap.nexus.rawrepo.baseurl.download> <onap.nexus.rawrepo.serverid>ecomp-raw</onap.nexus.rawrepo.serverid> <!-- properties for Nexus Docker registry --> <onap.nexus.dockerregistry.daily>nexus3.onap.org:10003</onap.nexus.dockerregistry.daily> <onap.nexus.dockerregistry.release>nexus3.onap.org:10002</onap.nexus.dockerregistry.release> <docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry> <docker.push.registry>nexus3.onap.org:10003</docker.push.registry> </properties> </profile> <profile> <id>releases</id> <repositories> <repository> <id>releases</id> <name>releases</name> <url>${env.NEXUSPROXY}/content/repositories/releases/</url> <releases> <enabled>true</enabled> <updatePolicy>never</updatePolicy> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>releases</id> <name>releases</name> <url>${env.NEXUSPROXY}/content/repositories/releases/</url> <releases> <enabled>true</enabled> <updatePolicy>never</updatePolicy> </releases> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> </pluginRepositories> </profile> <profile> <id>onap-public</id> <repositories> <repository> <id>central</id> <url>http://repo1.maven.org/maven2/</url> </repository> <repository> <id>onap-public</id> <name>onap-public</name> <url>https://nexus.onap.org/content/repositories/public/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>central</id> <url>http://repo1.maven.org/maven2/</url> </pluginRepository> <pluginRepository> <id>onap-public</id> <name>onap-public</name> <url>https://nexus.onap.org/content/repositories/public/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> </pluginRepositories> </profile> <profile> <id>staging</id> <repositories> <repository> <id>staging</id> <name>staging</name> <url>${env.NEXUSPROXY}/content/repositories/staging/</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> </profile> <profile> <id>snapshots</id> <repositories> <repository> <id>snapshots</id> <name>snapshots</name> <url>${env.NEXUSPROXY}/content/repositories/snapshots/</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>snapshots</id> <name>snapshots</name> <url>${env.NEXUSPROXY}/content/repositories/snapshots/</url> <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles> <activeProfiles> <activeProfile>onap-public</activeProfile> <activeProfile>onap-settings</activeProfile> <activeProfile>releases</activeProfile> <activeProfile>snapshots</activeProfile> </activeProfiles> </settings>
signature.asc
Description: OpenPGP digital signature
