mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-08-11 07:34:06 +00:00
Add missing import.
This commit is contained in:
parent
9fc3408bae
commit
d7db5da938
@ -15,7 +15,7 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import os
|
from os import getenv, path
|
||||||
from jenkinsapi.jenkins import Jenkins
|
from jenkinsapi.jenkins import Jenkins
|
||||||
from britney2.policies.policy import BasePolicy, PolicyVerdict
|
from britney2.policies.policy import BasePolicy, PolicyVerdict
|
||||||
|
|
||||||
@ -30,7 +30,7 @@ class JenkinsPassPolicy(BasePolicy):
|
|||||||
|
|
||||||
def __init__(self, options, suite_info):
|
def __init__(self, options, suite_info):
|
||||||
super().__init__("jenkins-pass", options, suite_info, {"unstable"})
|
super().__init__("jenkins-pass", options, suite_info, {"unstable"})
|
||||||
self.filename = os.path.join(options.unstable, "JenkinsPass")
|
self.filename = path.join(options.unstable, "JenkinsPass")
|
||||||
|
|
||||||
# Authenticate to Jenkins with the given env vars
|
# Authenticate to Jenkins with the given env vars
|
||||||
api_site = getenv("API_SITE")
|
api_site = getenv("API_SITE")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user