Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
54 lines (53 sloc) 1.6 KB
#!/usr/bin/env groovy
pipeline {
agent any
stages {
stage('Prepare') {
steps {
ansiColor('xterm') {
sh '''#!/bin/bash -l
sbt -J-Xmx4096m -J-XX:MaxMetaspaceSize=1536m clean update
'''
}
}
}
stage('Unit-Test and reports') {
steps {
withCredentials([
usernamePassword(
credentialsId: 'CODACY_BLENDED_CORE',
passwordVariable: 'CODACY_PROJECT_TOKEN',
usernameVariable: 'CODACY_USER_NAME'
)
]) {
ansiColor('xterm') {
sh '''#!/bin/bash -l
sbt -J-Xmx4096m -J-XX:MaxMetaspaceSize=1536m siteComplete
sbt -J-Xmx4096m -J-XX:MaxMetaspaceSize=1536m codacyCoverage
'''
junit allowEmptyResults: true, healthScaleFactor: 0.0, keepLongStdio: true, testResults: '**/target/test-reports/TEST*.xml'
sh '''#!/bin/bash -l
git remote set-url origin git@github.com:woq-blended/blended.git
git checkout --orphan gh-pages
git reset
git add -f target/site
git commit -m "Deploy Site, build number ${BUILD_NUMBER}"
git filter-branch -f --prune-empty --subdirectory-filter target/site
git clean -f -f -d
git push -f origin gh-pages
'''
}
}
}
}
stage('Compile and publish') {
steps {
ansiColor('xterm') {
sh '''#!/bin/bash -l
sbt -J-Xmx4096m -J-XX:MaxMetaspaceSize=1536m clean publishLocal
'''
}
}
}
}
}
You can’t perform that action at this time.