mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-11-13 00:09:10 +01:00
Compare commits
No commits in common. "f61178a098cd1f9f294a443ee6d3853d067f3129" and "6050e5ad9465d89021d0145295bc569aa2b3e1b4" have entirely different histories.
f61178a098
...
6050e5ad94
4 changed files with 39 additions and 21 deletions
|
@ -1,17 +0,0 @@
|
|||
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
Normal file
35
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
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'
|
||||
}
|
||||
}
|
|
@ -9,8 +9,8 @@ plugins {
|
|||
jarJar.enable()
|
||||
|
||||
version = mod_version
|
||||
if (System.getenv('CI_PIPELINE_NUMBER') != null) {
|
||||
version += "." + System.getenv('CI_PIPELINE_NUMBER')
|
||||
if (System.getenv('BUILD_NUMBER') != null) {
|
||||
version += "." + System.getenv('BUILD_NUMBER')
|
||||
}
|
||||
|
||||
group = mod_group_id
|
||||
|
@ -230,7 +230,7 @@ publishing {
|
|||
}
|
||||
repositories {
|
||||
maven {
|
||||
url "file://" + System.getenv("LOCAL_MAVEN")
|
||||
url "file://" + System.getenv("local_maven")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,7 +52,7 @@ mod_name=PrettyPipes
|
|||
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
|
||||
mod_license=MIT
|
||||
# The mod version. See https://semver.org/
|
||||
mod_version=1.14.0
|
||||
mod_version=1.13.6
|
||||
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
|
||||
# This should match the base package used for the mod sources.
|
||||
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||
|
|
Loading…
Reference in a new issue