aboutsummaryrefslogtreecommitdiffstats
path: root/.jenkins
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2019-05-26 07:35:49 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2019-05-26 07:35:49 -0400
commit4f7715b6e6e6d9ee8a41e2e3615d5187d64ae013 (patch)
tree5e734edc49274e3b666035c4a66e433393a278f5 /.jenkins
parent98cd156241d35851655f0b98fe5f785c65c7e39a (diff)
downloadcryptography-4f7715b6e6e6d9ee8a41e2e3615d5187d64ae013.tar.gz
cryptography-4f7715b6e6e6d9ee8a41e2e3615d5187d64ae013.tar.bz2
cryptography-4f7715b6e6e6d9ee8a41e2e3615d5187d64ae013.zip
Remove the final vestigates of Jenkins (#4897)
* Remove the final vestigates of Jenkins * flake8
Diffstat (limited to '.jenkins')
-rw-r--r--.jenkins/Jenkinsfile-OpenSSL-1.186
-rw-r--r--.jenkins/Jenkinsfile-cryptography-wheel-builder95
2 files changed, 0 insertions, 181 deletions
diff --git a/.jenkins/Jenkinsfile-OpenSSL-1.1 b/.jenkins/Jenkinsfile-OpenSSL-1.1
deleted file mode 100644
index 62ec9560..00000000
--- a/.jenkins/Jenkinsfile-OpenSSL-1.1
+++ /dev/null
@@ -1,86 +0,0 @@
-def configs = [
- [
- label: "windows2012-openssl", arch: "x86", "vsversion": 2010
- ],
- [
- label: "windows2012-openssl", arch: "x86_64", "vsversion": 2010
- ],
- [
- label: "windows2012-openssl", arch: "x86", "vsversion": 2015
- ],
- [
- label: "windows2012-openssl", arch: "x86_64", "vsversion": 2015
- ],
-]
-
-script = """
- wmic qfe
- powershell "[Net.ServicePointManager]::SecurityProtocol = 'tls12'; wget 'https://www.openssl.org/source/openssl-1.1.1-latest.tar.gz' -OutFile 'openssl-latest.tar.gz'"
- REM Next decompress the tarball using winrar. INUL disables error msgs, which are GUI prompts and therefore undesirable
- "C:\\Program Files\\WinRAR\\WinRAR.exe" -INUL x openssl-latest.tar.gz
- cd openssl-1*
- REM The next line determines the name of the current directory. Batch is great.
- FOR %%I IN (.) DO @SET CURRENTDIR=%%~nI%%~xI
- if "%BUILDARCH%" == "x86" (
- @SET BUILDARCHFLAG=x86
- @SET OPENSSLARCHFLAG="VC-WIN32"
- ) else (
- @SET BUILDARCHFLAG=amd64
- @SET OPENSSLARCHFLAG="VC-WIN64A"
- )
- if "%BUILDVSVERSION%" == "2010" (
- call "C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\vcvarsall.bat" %BUILDARCHFLAG%
- echo "Building with VS 2010"
- ) else (
- call "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\vcvarsall.bat" %BUILDARCHFLAG%
- echo "Building with VS 2015"
- )
- SET
- perl Configure no-comp no-shared %OPENSSLARCHFLAG%
- nmake
- nmake test
-
- if "%BUILDARCH%" == "x86" (
- @SET FINALDIR="openssl-win32-%BUILDVSVERSION%"
- ) else (
- @SET FINALDIR="openssl-win64-%BUILDVSVERSION%"
- )
- mkdir %FINALDIR%
- mkdir %FINALDIR%\\lib
- move include %FINALDIR%\\include
- move libcrypto.lib %FINALDIR%\\lib\\
- move libssl.lib %FINALDIR%\\lib\\
- "C:\\Program Files\\WinRAR\\WinRAR.exe" -INUL a %CURRENTDIR%-%BUILDVSVERSION%-%BUILDARCH%.zip %FINALDIR%\\include %FINALDIR%\\lib\\libcrypto.lib %FINALDIR%\\lib\\libssl.lib
-"""
-
-def build(label, vsversion, arch) {
- node(label) {
- try {
- timeout(time: 30, unit: 'MINUTES') {
- stage("Compile") {
- withEnv(["BUILDARCH=$arch", "BUILDVSVERSION=$vsversion"]) {
- bat script
- }
- }
- stage("Archive") {
- archiveArtifacts artifacts: "**/openssl-*.zip"
- }
- }
- } finally {
- deleteDir()
- }
- }
-}
-
-def builders = [:]
-
-for (config in configs) {
- def vsversion = config["vsversion"]
- def arch = config["arch"]
- def label = config["label"]
- builders["${vsversion}-${arch}"] = {
- build(label, vsversion, arch)
- }
-}
-
-parallel builders
diff --git a/.jenkins/Jenkinsfile-cryptography-wheel-builder b/.jenkins/Jenkinsfile-cryptography-wheel-builder
deleted file mode 100644
index 907f06e9..00000000
--- a/.jenkins/Jenkinsfile-cryptography-wheel-builder
+++ /dev/null
@@ -1,95 +0,0 @@
-properties([
- parameters([
- string(defaultValue: '', description: 'The version from PyPI to build', name: 'BUILD_VERSION')
- ]),
- pipelineTriggers([])
-])
-
-def configs = [
- [
- label: 'windows',
- versions: ['py27', 'py34', 'py35', 'py36', 'py37'],
- ],
- [
- label: 'windows64',
- versions: ['py27', 'py34', 'py35', 'py36', 'py37'],
- ],
-]
-
-
-def build(version, label, imageName) {
- try {
- timeout(time: 30, unit: 'MINUTES') {
- if (label.contains("windows")) {
- def pythonPath = [
- py27: "C:\\Python27\\python.exe",
- py34: "C:\\Python34\\python.exe",
- py35: "C:\\Python35\\python.exe",
- py36: "C:\\Python36\\python.exe",
- py37: "C:\\Python37\\python.exe"
- ]
- if (version == "py35" || version == "py36" || version == "py37") {
- opensslPaths = [
- "windows": [
- "include": "C:\\OpenSSL-Win32-2015\\include",
- "lib": "C:\\OpenSSL-Win32-2015\\lib"
- ],
- "windows64": [
- "include": "C:\\OpenSSL-Win64-2015\\include",
- "lib": "C:\\OpenSSL-Win64-2015\\lib"
- ]
- ]
- } else {
- opensslPaths = [
- "windows": [
- "include": "C:\\OpenSSL-Win32-2010\\include",
- "lib": "C:\\OpenSSL-Win32-2010\\lib"
- ],
- "windows64": [
- "include": "C:\\OpenSSL-Win64-2010\\include",
- "lib": "C:\\OpenSSL-Win64-2010\\lib"
- ]
- ]
- }
- bat """
- wmic qfe
- @set PATH="C:\\Python27";"C:\\Python27\\Scripts";%PATH%
- @set PYTHON="${pythonPath[version]}"
-
- @set INCLUDE="${opensslPaths[label]['include']}";%INCLUDE%
- @set LIB="${opensslPaths[label]['lib']}";%LIB%
- virtualenv -p %PYTHON% .release
- call .release\\Scripts\\activate
- pip install wheel virtualenv
- pip wheel cryptography==$BUILD_VERSION --no-use-pep517 --wheel-dir=wheelhouse --no-binary cryptography
- pip install -f wheelhouse cryptography --no-index
- python -c "from cryptography.hazmat.backends.openssl.backend import backend;print('Loaded: ' + backend.openssl_version_text());print('Linked Against: ' + backend._ffi.string(backend._lib.OPENSSL_VERSION_TEXT).decode('ascii'))"
- """
- }
- archiveArtifacts artifacts: "wheelhouse/cryptography*.whl"
- }
- } finally {
- deleteDir()
- }
-
-}
-
-def builders = [:]
-for (config in configs) {
- def label = config["label"]
- def versions = config["versions"]
-
- for (_version in versions) {
- def version = _version
- def combinedName = "${label}-${version}"
- builders[combinedName] = {
- node(label) {
- stage(combinedName) {
- build(version, label, "")
- }
- }
- }
- }
-}
-
-parallel builders