Skip to content

Commit 96a72de

Browse files
James E. BlairJenkins
James E. Blair
authored and
Jenkins
committed
Add jenkins-jobs command line tool.
So that jenkins-jobs can be easily run for testing from the source dir without installation. Change-Id: Iabba59ad32ccd4b79eb8934e53c6d747110a06b0 Reviewed-on: https://review.openstack.org/26259 Reviewed-by: Clark Boylan <[email protected]> Approved: Monty Taylor <[email protected]> Reviewed-by: Monty Taylor <[email protected]> Tested-by: Jenkins
1 parent 54b6bcc commit 96a72de

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Diff for: tools/jenkins-jobs.py

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env python
2+
# Copyright (C) 2013 OpenStack Foundation
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
# License for the specific language governing permissions and limitations
14+
# under the License.
15+
16+
# A simple test script to invoke the command entry point from the
17+
# source directory without the necessity of installation.
18+
19+
import os
20+
import sys
21+
sys.path.append(os.path.abspath('.'))
22+
23+
import jenkins_jobs.cmd
24+
25+
jenkins_jobs.cmd.main()

0 commit comments

Comments
 (0)