forked from cloudera/impyla
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMPYLA-43][IMPYLA-44] Allow multiple Jenkins config
Also removes dependency on `jq`. Fixes cloudera#43 Fixes cloudera#44
- Loading branch information
Showing
3 changed files
with
109 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
To configure a Jenkins job to test impyla, you must inject the following | ||
environment variables. These variables make some assumption related to | ||
Cloudera's internal CM/CDH testing. | ||
|
||
```bash | ||
# example config | ||
HOST_SHORT_NAME=nightly | ||
NIGHTLY_JOB_NAME=CM-Master-Refresh-Nightly-Cluster | ||
PYMODULE_VERSIONS=master | ||
IMPALA_PROTOCOL=hiveserver2 | ||
``` | ||
|
||
Here are possible values for the variables: | ||
|
||
`HOST_SHORT_NAME` and `NIGHTLY_JOB_NAME`: | ||
|
||
* `nightly` and `CM-Master-Refresh-Nightly-Cluster` | ||
|
||
* `nightly52` and `CM-Refresh-5.2-Cluster` | ||
|
||
* `nightly-kerberized` and `CM-Refresh-Nightly-Kerberos-Cluster` | ||
|
||
|
||
`PYMODULE_VERSIONS` | ||
|
||
* `master` | ||
|
||
* `release` | ||
|
||
|
||
`IMPALA_PROTOCOL` | ||
|
||
* `hiveserver2` | ||
|
||
* `beeswax` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#! /usr/bin/env python | ||
# Copyright 2014 Cloudera Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
import sys | ||
|
||
try: | ||
import json | ||
except ImportError: | ||
import simplejson as json | ||
|
||
data = json.loads(sys.stdin.read()) | ||
sys.stdout.write(data['result'] + '\n') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters