mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-11-22 11:53:29 +01:00
added woodpecker workflow
This commit is contained in:
parent
6050e5ad94
commit
4c55b4a677
3 changed files with 18 additions and 36 deletions
17
.woodpecker/main.yml
Normal file
17
.woodpecker/main.yml
Normal file
|
@ -0,0 +1,17 @@
|
|||
steps:
|
||||
build:
|
||||
image: eclipse-temurin:17-jdk
|
||||
commands:
|
||||
- chmod +x ./gradlew
|
||||
- ./gradlew build --no-daemon
|
||||
maven-publish:
|
||||
image: eclipse-temurin:17-jdk
|
||||
when:
|
||||
branch: main
|
||||
commands:
|
||||
- chmod +x ./gradlew
|
||||
- ./gradlew publish --no-daemon
|
||||
environment:
|
||||
- LOCAL_MAVEN=/var/www/maven
|
||||
volumes:
|
||||
- /var/www/maven:/var/www/maven
|
35
Jenkinsfile
vendored
35
Jenkinsfile
vendored
|
@ -1,35 +0,0 @@
|
|||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage('Clean') {
|
||||
steps {
|
||||
sh 'chmod +x ./gradlew'
|
||||
sh './gradlew clean --no-daemon'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh './gradlew build --no-daemon'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Upload Artifacts') {
|
||||
steps {
|
||||
archiveArtifacts 'build/libs/**.jar'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Publish') {
|
||||
when {
|
||||
branch 'main'
|
||||
}
|
||||
steps {
|
||||
sh './gradlew publish --no-daemon'
|
||||
}
|
||||
}
|
||||
}
|
||||
environment {
|
||||
local_maven = '/var/www/maven'
|
||||
}
|
||||
}
|
|
@ -230,7 +230,7 @@ publishing {
|
|||
}
|
||||
repositories {
|
||||
maven {
|
||||
url "file://" + System.getenv("local_maven")
|
||||
url "file://" + System.getenv("LOCAL_MAVEN")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue