Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 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

...

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 of a pom submodule must refer to root pom as parent , 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

...

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


*** Refering to oparent from submodule pom.xml 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),

...

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 
The push refers to repository