You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

 Tracker and general tips: global-jjb Migration Tracker

 Tips for multicloud gerrit-maven-stage:


1, jjb must be updated with gerrit-maven-stage:
jobs:
- gerrit-maven-stage:
sign-artifacts: true
build-node: centos7-builder-4c-4g
maven-versions-plugin: true

  2, Oparent version must be updated to 2.0.0 , Otherwise "sign-artifacts" will fail and jjb log complains something like:

11:07:39 ---> sigul-sign-dir.sh
11:07:40 Signing Directory with Sigul...
11:07:40 find: ‘/w/workspace/multicloud-openstack-vmware-maven-stage-master/m2repo’: No such file or directory
11:07:40 ERROR: No files to sign. Quitting...


  3,pom.xml refers to oparent must be accompanied by version.properties in the same dir. Or it could refer to a parent which meet that requirement. e. g.

multicloud/openstack/version.properties

major=1
minor=4
patch=0

multicloud/openstack/pom.xml

<parent>
<groupId>org.onap.oparent</groupId>
<artifactId>oparent</artifactId>
<version>2.0.0</version>
<!--relativePath>../oparent</relativePath-->
</parent>

<modelVersion>4.0.0</modelVersion>
<groupId>org.onap.multicloud.openstack</groupId>
<artifactId>multicloud-openstack-root</artifactId>
<version>1.4.0-SNAPSHOT</version>
<name>multicloud-openstack</name>

multicloud/openstack/windriver/pom.xml

<parent>
<groupId>org.onap.multicloud.openstack</groupId>
<artifactId>multicloud-openstack-root</artifactId>
<version>1.4.0-SNAPSHOT</version>
</parent>

*** The expected jjb log output looks like:

13:51:31 [INFO] Local aggregation root: /w/workspace/multicloud-openstack-maven-stage-master
13:51:31 [INFO] Processing change of org.onap.multicloud.openstack:multicloud-openstack-root:1.4.0-SNAPSHOT -> 1.4.0
13:51:31 [INFO] Processing org.onap.multicloud.openstack:multicloud-openstack-root
13:51:31 [INFO]     Updating project org.onap.multicloud.openstack:multicloud-openstack-root
13:51:31 [INFO]         from version 1.4.0-SNAPSHOT to 1.4.0


14:04:06 Deploying directory /w/workspace/multicloud-openstack-maven-stage-master/m2repo to https://nexus.onap.org/service/local/staging/deployByRepositoryId/autorelease-148670
14:04:06 Uploading org/onap/multicloud/openstack/multicloud-openstack-root/1.4.0/multicloud-openstack-root-1.4.0.pom
14:04:06 Uploading org/onap/multicloud/openstack/multicloud-openstack-root/1.4.0/multicloud-openstack-root-1.4.0.pom.asc

14:04:07 Uploaded in 0:00:01 seconds.
14:04:08 Completed uploading files to autorelease-148670.


*** Failed to meet that requirement will result in failing to rename the pom artifact version (e.g. rename it from 1.4.0-SNAPSHOT to 1.4.0),

framework/artifactbroker/pom.xml

<parent>
<groupId>org.onap.oparent</groupId>
<artifactId>oparent</artifactId>
<version>1.2.0</version>
<relativePath>../oparent</relativePath>
</parent>

framework/artifactbroker/reception/pom.xml
<parent>
<groupId>org.onap.multicloud.framework</groupId>
<artifactId>multicloud-framework-artifactbroker</artifactId>
<version>1.3.4-SNAPSHOT</version>
</parent>

hence resulting the failure of uploading artifacts to nexus.onap.org, the jjb log print something like:

13:48:08 Uploading org/onap/multicloud/framework/multicloud-framework-artifactbroker-reception-plugins/1.4.0-SNAPSHOT/multicloud-framework-artifactbroker-reception-plugins-1.4.0-20190711.054615-1.pom
13:48:08 Traceback (most recent call last):
13:48:08   File "/home/jenkins/.local/bin/lftools", line 10, in <module>
13:48:08     sys.exit(main())
13:48:08   File "/home/jenkins/.local/lib/python2.7/site-packages/lftools/cli/__init__.py", line 112, in main
13:48:08     cli(obj={})
13:48:08   File "/usr/lib/python2.7/site-packages/click/core.py", line 722, in __call__
13:48:08     return self.main(*args, **kwargs)
13:48:08   File "/usr/lib/python2.7/site-packages/click/core.py", line 697, in main
13:48:08     rv = self.invoke(ctx)
13:48:08   File "/usr/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
13:48:08     return _process_result(sub_ctx.command.invoke(sub_ctx))
13:48:08   File "/usr/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
13:48:08     return _process_result(sub_ctx.command.invoke(sub_ctx))
13:48:08   File "/usr/lib/python2.7/site-packages/click/core.py", line 895, in invoke
13:48:08     return ctx.invoke(self.callback, **ctx.params)
13:48:08   File "/usr/lib/python2.7/site-packages/click/core.py", line 535, in invoke
13:48:08     return callback(*args, **kwargs)
13:48:08   File "/usr/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
13:48:08     return f(get_current_context(), *args, **kwargs)
13:48:08   File "/home/jenkins/.local/lib/python2.7/site-packages/lftools/cli/deploy.py", line 266, in nexus_stage
13:48:08     deploy_dir)
13:48:08   File "/home/jenkins/.local/lib/python2.7/site-packages/lftools/deploy.py", line 672, in deploy_nexus_stage
13:48:08     deploy_nexus(deploy_nexus_url, deploy_dir)
13:48:08   File "/home/jenkins/.local/lib/python2.7/site-packages/lftools/deploy.py", line 636, in deploy_nexus
13:48:08     pool.map(_deploy_nexus_upload, file_list)
13:48:08   File "/usr/lib64/python2.7/multiprocessing/pool.py", line 250, in map
13:48:08     return self.map_async(func, iterable, chunksize).get()
13:48:08   File "/usr/lib64/python2.7/multiprocessing/pool.py", line 554, in get
13:48:08     raise self._value
13:48:08 requests.exceptions.HTTPError: Repository is read only
13:48:08 Build step 'Execute shell' marked build as failure




 Tips for multicloud gerrit-docker-maven-stage:

1, jjb update:

https://gerrit.onap.org/r/c/ci-management/+/91437


2, maven pom update:

https://gerrit.onap.org/r/c/multicloud/framework/+/91438


3, trigger the test:

reply your patches with "stage-release"


4, check the log:

Locate the latest run of "multicloud-xxx-maven-docker-stage-master"

search keywords:

 maven-antrun-plugin:1.6:run

maven-deploy-plugin:2.7:deploy 


  • No labels