Skip to content

Commit

Permalink
FDN-1594: Adopt skeleton pipeline (#282)
Browse files Browse the repository at this point in the history
* FDN-1594: Adopt skeleton pipeline

* Remove @Library
  • Loading branch information
nicolagi authored Jan 2, 2024
1 parent feba95e commit efe74f8
Showing 1 changed file with 1 addition and 64 deletions.
65 changes: 1 addition & 64 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,64 +1 @@
pipeline {
agent {
kubernetes {
inheritFrom 'default'
containerTemplates([
containerTemplate(name: 'play', image: 'flowdocker/play_builder:latest-java17-jammy', command: 'cat', ttyEnabled: true),
])
}
}

options {
disableConcurrentBuilds()
}

stages {
stage('Checkout') {
steps {
checkoutWithTags scm
}
}

stage('Tag new version') {
when { branch 'main' }
steps {
script {
VERSION = new flowSemver().calculateSemver()
new flowSemver().commitSemver(VERSION)
}
}
}
stage('SBT Test') {
steps {
container('play') {
script {
try {
sh '''
sbt clean compile flowLintLib test scalafmtSbtCheck scalafmtCheck doc
'''
} finally {
junit allowEmptyResults: true, testResults: '**/target/test-reports/*.xml'
}
}
}
}
}
stage('Release') {
when { branch 'main' }
steps {
container('play') {
withCredentials([
usernamePassword(
credentialsId: 'jenkins-x-jfrog',
usernameVariable: 'ARTIFACTORY_USERNAME',
passwordVariable: 'ARTIFACTORY_PASSWORD'
)
]) {
sh 'sbt clean +publish'
syncDependencyLibrary()
}
}
}
}
}
}
skeletonLibraryPipeline()

0 comments on commit efe74f8

Please sign in to comment.