GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — objectbox-java/Jenkinsfile at master · heyujava/objectbox-java Expand file tree/ Copy pathJenkinsfileMore file actions 102 lines (86 loc) · 3.66 KB / Copy pathJenkinsfileFile metadata and controls102 lines (86 loc) · 3.66 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 def COLOR_MAP = ['SUCCESS': 'good', 'FAILURE': 'danger', 'UNSTABLE': 'danger', 'ABORTED': 'danger'] // dev branch only: every 30 minutes at night (1:00 - 5:00) String cronSchedule = BRANCH_NAME == 'dev' ? '*/30 1-5 * * *' : '' String buildsToKeep = '500' // https://jenkins.io/doc/book/pipeline/syntax/ pipeline { agent any environment { GITLAB_URL = credentials('gitlab_url') } options { buildDiscarder(logRotator(numToKeepStr: buildsToKeep, artifactNumToKeepStr: buildsToKeep)) gitLabConnection("${env.GITLAB_URL}") } triggers { upstream(upstreamProjects: "ObjectBox-Linux/${env.BRANCH_NAME.replaceAll("/", "%2F")}", threshold: hudson.model.Result.SUCCESS) cron(cronSchedule) } stages { stage('init') { steps { // Copied file exists on CI server only sh 'cp /var/my-private-files/private.properties ./gradle.properties' sh 'chmod +x gradlew' // "|| true" for an OK exit code if no file is found sh 'rm tests/objectbox-java-test/hs_err_pid*.log || true' } } stage('build-java') { steps { sh './test-with-asan.sh -Dextensive-tests=true clean test ' + '--tests io.objectbox.FunctionalTestSuite ' + '--tests io.objectbox.test.proguard.ObfuscatedEntityTest ' + '--tests io.objectbox.rx.QueryObserverTest ' + 'assemble' } } stage('upload-to-repo') { // Note: to avoid conflicts between snapshot versions, add the branch name // before '-SNAPSHOT' to the version string, like '1.2.3-branch-SNAPSHOT' when { expression { return BRANCH_NAME != 'publish' } } steps { sh './gradlew --stacktrace -PpreferedRepo=local uploadArchives' } } stage('upload-to-bintray') { when { expression { return BRANCH_NAME == 'publish' } } environment { BINTRAY_URL = credentials('bintray_url') BINTRAY_LOGIN = credentials('bintray_login') } steps { script { slackSend color: "#42ebf4", message: "Publishing ${currentBuild.fullDisplayName} to Bintray...\n${env.BUILD_URL}" } sh './gradlew --stacktrace -PpreferedRepo=${BINTRAY_URL} -PpreferedUsername=${BINTRAY_LOGIN_USR} -PpreferedPassword=${BINTRAY_LOGIN_PSW} uploadArchives' script { slackSend color: "##41f4cd", message: "Published ${currentBuild.fullDisplayName} successfully to Bintray - check https://bintray.com/objectbox/objectbox\n${env.BUILD_URL}" } } } } // For global vars see /jenkins/pipeline-syntax/globals post { always { junit '**/build/test-results/**/TEST-*.xml' archive 'tests/*/hs_err_pid*.log' archive '**/build/reports/findbugs/*' } changed { slackSend color: COLOR_MAP[currentBuild.currentResult], message: "Changed to ${currentBuild.currentResult}: ${currentBuild.fullDisplayName}\n${env.BUILD_URL}" } failure { slackSend color: "danger", message: "Failed: ${currentBuild.fullDisplayName}\n${env.BUILD_URL}" updateGitlabCommitStatus name: 'build', state: 'failed' } success { updateGitlabCommitStatus name: 'build', state: 'success' } } } |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |