Warning, /packaging/appimage-packaging/ring-kde/JenkinsFile is written in an unsupported language. File is not indexed.

0001 #!groovy
0002 
0003 /*
0004 The MIT License
0005 Copyright (c) 2015-, CloudBees, Inc., and a number of other of contributors
0006 Permission is hereby granted, free of charge, to any person obtaining a copy
0007 of this software and associated documentation files (the "Software"), to deal
0008 in the Software without restriction, including without limitation the rights
0009 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
0010 copies of the Software, and to permit persons to whom the Software is
0011 furnished to do so, subject to the following conditions:
0012 The above copyright notice and this permission notice shall be included in
0013 all copies or substantial portions of the Software.
0014         THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
0017 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
0018 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
0019 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
0020 THE SOFTWARE.
0021 */
0022 
0023 node('linux') {
0024    def WORKSPACE = pwd()
0025    currentBuild.result = "SUCCESS"
0026    properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '5')), \
0027    [$class: 'GithubProjectProperty', displayName: '', projectUrlStr: 'https://github.com/appimage-packages/ring-kde/'], pipelineTriggers([cron('H H(0-2) * * *'), [$class: 'GitHubPushTrigger'], pollSCM('H/15 * * * *')])])
0028    withEnv(['PROJECT_NAME=ring-kde',
0029                  'DOCKER_IMAGE=sgclark/trusty-qt59',
0030                  'KF5=true']) {
0031                    try {
0032 
0033                      stage( 'Checkout' ) {
0034                         checkout scm
0035                         checkout changelog: false, poll: false, scm: [$class: 'GitSCM', branches: [[name: '*/master']], \
0036                         browser: [$class: 'GithubWeb', repoUrl: ''], doGenerateSubmoduleConfigurations: false, \
0037                         extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'tooling']], submoduleCfg: [], \
0038                         userRemoteConfigs: [[url: 'https://github.com/blue-systems/pangea-tooling']]]
0039                         checkout changelog: false, poll: false, scm: [$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, \
0040                         extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'ring-kde']], submoduleCfg: [], userRemoteConfigs: [[url: 'https://anongit.kde.org/ring-kde']]]
0041                     }
0042                     stage( 'Setup' ) {
0043                        sh 'echo $PATH'
0044                        sh 'eval "$(rbenv init -)" && rbenv local 2.3.1 && bundle install'
0045                     }
0046                     stage( 'Build' ) {
0047                        sh 'bundle exec ruby tooling/aci/contain.rb'
0048                     }
0049                     stage('Copy Artifacts') {
0050                        step([$class: 'S3BucketPublisher', consoleLogLevel: 'INFO', dontWaitForConcurrentBuildCompletion: false, entries: [[bucket: "ds9-apps/${JOB_NAME}", excludedFile: '', flatten: false, gzipFiles: false, keepForever: false, \
0051                        managedArtifacts: false, noUploadOnFailure: true, selectedRegion: 'eu-central-1', showDirectlyInBrowser: true, \
0052                        sourceFile: 'appimages/*.AppImage', storageClass: 'STANDARD', uploadFromSlave: true, useServerSideEncryption: false]], pluginFailureResultConstraint: 'UNSTABLE', profileName: 'ds9-apps', userMetadata: []])
0053                        step([$class: 'S3BucketPublisher', consoleLogLevel: 'INFO', dontWaitForConcurrentBuildCompletion: false, entries: [[bucket: "ds9-apps/${JOB_NAME}", excludedFile: '', flatten: false, gzipFiles: false, keepForever: false, \
0054                        managedArtifacts: false, noUploadOnFailure: true, selectedRegion: 'eu-central-1', showDirectlyInBrowser: true, \
0055                        sourceFile: 'appimages/*.zsync', storageClass: 'STANDARD', uploadFromSlave: true, useServerSideEncryption: false]], pluginFailureResultConstraint: 'UNSTABLE', profileName: 'ds9-apps', userMetadata: []])
0056                     }
0057                     stage('Tests') {
0058                        step([$class: 'LogParserPublisher', failBuildOnError: true, projectRulePath: 'tooling/aci/parser.rules', showGraphs: true, unstableOnWarning: true, useProjectRule: true])
0059                     }
0060                  }
0061 
0062 
0063 
0064 
0065               catch (err) {
0066 
0067                  currentBuild.result = "FAILURE"
0068 
0069                  echo "FAILURE"
0070                  throw err
0071               }
0072            }
0073            }