I solved that issue. Now I have another one.
Previous error is due to old version of pip which is preinstalled on ubuntu
16.04. I upgraded pip and I was able to install jenkins job builder.
I ran below commands successfully.
cd ci-management
sudo apt-get install python-virtualenv
virtualenv onap_sandbox
source onap_sandbox/bin/activate
pip install jenkins-job-builder
jenkins-jobs --version
When I ran this command 'jenkins-jobs test --recursive jjb/', I got below error:
(onap_sandbox) root@alcdtl43rj6015:~/ONAPrepo/ci-management# jenkins-jobs test
--recursive jjb/
INFO:root:Will use anonymous access to Jenkins if needed.
INFO:jenkins_jobs.local_yaml:Including file 'include-docker-push.sh' from path
'/root/ONAPrepo/ci-management/jjb'
INFO:jenkins_jobs.local_yaml:Including file 'include-update-pom-versions.sh'
from path '/root/ONAPrepo/ci-management/jjb'
INFO:jenkins_jobs.local_yaml:Including file 'include-update-pom-versions.sh'
from path '/root/ONAPrepo/ci-management/jjb'
INFO:jenkins_jobs.local_yaml:Including file 'include-docker-login.sh' from path
'/root/ONAPrepo/ci-management/jjb'
INFO:jenkins_jobs.local_yaml:Including file 'include-raw-deploy-archives.sh'
from path '/root/ONAPrepo/ci-management/jjb'
INFO:jenkins_jobs.local_yaml:Including file 'include-update-pom-versions.sh'
from path '/root/ONAPrepo/ci-management/jjb'
INFO:jenkins_jobs.local_yaml:Including file 'include-docker-blessing.sh' from
path '/root/ONAPrepo/ci-management/jjb'
INFO:jenkins_jobs.local_yaml:Including file 'testsuite-docker.sh' from path
'/root/ONAPrepo/ci-management/jjb/testsuite'
INFO:jenkins_jobs.local_yaml:Including file 'build-driver-ems-docker-image.sh'
from path '/root/ONAPrepo/ci-management/jjb/vfc'
INFO:jenkins_jobs.local_yaml:Including file 'build-nfvo-lcm-docker-image.sh'
from path '/root/ONAPrepo/ci-management/jjb/vfc'
INFO:jenkins_jobs.local_yaml:Including file
'build-gvnfm-vnfres-docker-image.sh' from path
'/root/ONAPrepo/ci-management/jjb/vfc'
INFO:jenkins_jobs.local_yaml:Including file
'build-nfvo-resmanagement-docker-image.sh' from path
'/root/ONAPrepo/ci-management/jjb/vfc'
INFO:jenkins_jobs.local_yaml:Including file
'build-gvnfm-driver-docker-image.sh' from path
'/root/ONAPrepo/ci-management/jjb/vfc'
INFO:jenkins_jobs.local_yaml:Including file
'build-gvnfm-vnflcm-docker-image.sh' from path
'/root/ONAPrepo/ci-management/jjb/vfc'
INFO:jenkins_jobs.local_yaml:Including file
'build-driver-zte-sfc-docker-image.sh' from path
'/root/ONAPrepo/ci-management/jjb/vfc'
INFO:jenkins_jobs.local_yaml:Including file
'build-nfvo-catalog-docker-image.sh' from path
'/root/ONAPrepo/ci-management/jjb/vfc'
INFO:jenkins_jobs.local_yaml:Including file
'build-gvnfm-vnfmgr-docker-image.sh' from path
'/root/ONAPrepo/ci-management/jjb/vfc'
INFO:jenkins_jobs.local_yaml:Including file
'build-nfvo-svnfm-driver-docker-image.sh' from path
'/root/ONAPrepo/ci-management/jjb/vfc'
INFO:jenkins_jobs.local_yaml:Including file 'doc-post-rtd.sh' from path
'/root/ONAPrepo/ci-management/jjb/doc'
INFO:jenkins_jobs.local_yaml:Including file 'build-apigateway-docker-image.sh'
from path '/root/ONAPrepo/ci-management/jjb/msb'
INFO:jenkins_jobs.local_yaml:Including file 'build-discovery-docker-image.sh'
from path '/root/ONAPrepo/ci-management/jjb/msb'
INFO:jenkins_jobs.local_yaml:Including file
'include-raw-integration-install-robotframework.sh' from path
'/root/ONAPrepo/ci-management/jjb/integration'
INFO:jenkins_jobs.local_yaml:Including file 'build-registrator-docker-image.sh'
from path '/root/ONAPrepo/ci-management/jjb/oom'
INFO:jenkins_jobs.local_yaml:Including file
'build-multicloud-openstack-vmware-docker-image.sh' from path
'/root/ONAPrepo/ci-management/jjb/multicloud'
INFO:jenkins_jobs.local_yaml:Including file
'build-multicloud-framework-docker-image.sh' from path
'/root/ONAPrepo/ci-management/jjb/multicloud'
INFO:jenkins_jobs.local_yaml:Including file
'build-multicloud-openstack-docker-image.sh' from path
'/root/ONAPrepo/ci-management/jjb/multicloud'
INFO:jenkins_jobs.local_yaml:Including file 'include-raw-docker-verify.sh' from
path '/root/ONAPrepo/ci-management/jjb/policy'
INFO:jenkins_jobs.local_yaml:Including file 'include-raw-docker-merge.sh' from
path '/root/ONAPrepo/ci-management/jjb/policy'
INFO:jenkins_jobs.local_yaml:Including file 'include-raw-docker-release.sh'
from path '/root/ONAPrepo/ci-management/jjb/policy'
INFO:jenkins_jobs.local_yaml:Including file 'docker-build-deploy.sh' from path
'/root/ONAPrepo/ci-management/jjb/portal'
INFO:jenkins_jobs.local_yaml:Including file 'docker-build-push.sh' from path
'/root/ONAPrepo/ci-management/jjb/portal'
INFO:jenkins_jobs.local_yaml:Including file 'docker-build-release.sh' from path
'/root/ONAPrepo/ci-management/jjb/portal'
Traceback (most recent call last):
File "/root/ONAPrepo/ci-management/onap_sandbox/bin/jenkins-jobs", line 11,
in <module>
sys.exit(main())
File
"/root/ONAPrepo/ci-management/onap_sandbox/local/lib/python2.7/site-packages/jenkins_jobs/cmd.py",
line 191, in main
execute(options, config)
File
"/root/ONAPrepo/ci-management/onap_sandbox/local/lib/python2.7/site-packages/jenkins_jobs/cmd.py",
line 380, in execute
n_workers=1)
File
"/root/ONAPrepo/ci-management/onap_sandbox/local/lib/python2.7/site-packages/jenkins_jobs/builder.py",
line 349, in update_jobs
self.parser.expandYaml(jobs_glob)
File
"/root/ONAPrepo/ci-management/onap_sandbox/local/lib/python2.7/site-packages/jenkins_jobs/parser.py",
line 266, in expandYaml
.format(jobname))
jenkins_jobs.errors.JenkinsJobsException: Failed to find suitable template
named '{project-name}-packer-jobs'
-----Original Message-----
From: Jessica Wagantall via RT [mailto:[email protected]]
Sent: Monday, September 18, 2017 12:47 PM
To: GUDISENA, VARUNESHWAR <[email protected]>
Cc: DOMETRIUS, ALEXANDER C <[email protected]>; [email protected]
Subject: [ONAP Helpdesk #45935] Jenkins Sandbox Setup Issue
Dear Varun,
Maybe your previous commands didn't went through,
Can you please send me the output of these commands:
sudo apt-get install python-virtualenv
virtualenv onap_sandbox
source onap_sandbox/bin/activate
This is how things look for me, as an example:
jessicag@jessicag:~/linuxfoundation/onap/cuatro/ci-management$ sudo apt-get
install python-virtualenv
[sudo] password for jessicag:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-virtualenv is already the newest version (15.0.1+ds-3ubuntu1).
The following packages were automatically installed and are no longer required:
containerd linux-headers-3.19.0-15 linux-headers-3.19.0-15-generic
linux-image-3.19.0-15-generic linux-image-extra-3.19.0-15-generic runc
ubuntu-fan
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 238 not upgraded.
jessicag@jessicag:~/linuxfoundation/onap/cuatro/ci-management$ virtualenv
onap_sandbox
Running virtualenv with interpreter /usr/bin/python2
New python executable in
/home/jessicag/linuxfoundation/onap/cuatro/ci-management/onap_sandbox/bin/python2
Also creating executable in
/home/jessicag/linuxfoundation/onap/cuatro/ci-management/onap_sandbox/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
jessicag@jessicag:~/linuxfoundation/onap/cuatro/ci-management$ source
onap_sandbox/bin/activate
(onap_sandbox) jessicag@jessicag:~/linuxfoundation/onap/cuatro/ci-management$
Thanks!
Jess
_______________________________________________
onap-discuss mailing list
[email protected]
https://lists.onap.org/mailman/listinfo/onap-discuss