Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1"""
2@file
3@brief Various functions to install `Jenkins <http://jenkins-ci.org/>`_.
5.. versionadded:: 1.1
6"""
7from __future__ import print_function
8import sys
9import os
11from .install_custom import download_file
14def install_jenkins(dest_folder=".", fLOG=print, install=True, version=None):
15 """
16 install `Jenkins <http://jenkins-ci.org/>`_ (only on Windows)
18 @param dest_folder where to download the setup
19 @param fLOG logging function
20 @param install install (otherwise only download)
21 @param version version to install (unused)
22 @return temporary file
24 .. versionadded:: 1.1
25 """
26 if version is not None:
27 raise ValueError("cannot specify a version")
29 if not sys.platform.startswith("win"):
30 raise NotImplementedError(
31 "SciTE can only be installed on Windows at the moment")
33 url = "http://mirrors.jenkins.io/war/latest/jenkins.war"
35 outfile = os.path.join(dest_folder, "jenkins.war")
36 if not os.path.exists(outfile):
37 download_file(url, outfile)
39 if install:
40 raise NotImplementedError("Does not install jenkins.war")
41 return outfile