Commit fc519add authored by primetoxinz's avatar primetoxinz

Add Jenkinsfile

parent 1c94faf5
#!/usr/bin/env groovy
pipeline {
agent any
stages {
stage('Clean') {
steps {
echo 'Cleaning Project'
sh 'chmod +x gradlew'
sh './gradlew clean'
}
}
stage('Setup') {
steps {
echo 'Setting up Workspace'
sh './gradlew setupCiWorkspace'
}
}
stage('Build and Deploy') {
steps {
echo 'Building and Deploying to Maven'
script {
sh './gradlew build uploadArchives'
}
}
}
}
post {
always {
archive 'build/libs/**.jar'
}
}
}
\ No newline at end of file
......@@ -95,43 +95,12 @@ dependencies {
uploadArchives {
repositories {
mavenDeployer {
repository(url: "file://" + System.getenv("local_maven"))
pom {
groupId = project.group
version
artifactId = project.archivesBaseName
project {
name project.archivesBaseName
packaging 'jar'
description 'BetterWithMods'
url 'https://github.com/BetterWithMods/BetterWithMods'
scm {
url 'https://github.com/BetterWithMods/BetterWithMods.git'
connection 'scm:git:git@github.com:BetterWithMods/BetterWithMods.git'
developerConnection 'scm:git:git@github.com:BetterWithMods/BetterWithMods.git'
}
issueManagement {
system 'github'
url 'https://github.com/BetterWithMods/BetterWithMods/issues'
}
developers {
developer {
id 'primetoxinz'
name 'primetoxinz'
roles { role 'developer' }
}
developer {
id 'beetoguy'
name 'beetoguy'
roles { role 'developer' }
}
}
}
}
repository(url: "file://" + (System.getenv("local_maven") != null ? System.getenv("local_maven") : System.getenv("bamboo_local_maven")))
}
}
}
processResources {
inputs.property "version", project.version
inputs.property "mcversion", project.minecraft.version
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment