Skip to content

Commit

Permalink
Buildscript cleanup, support skipping CI
Browse files Browse the repository at this point in the history
  • Loading branch information
solonovamax committed Oct 20, 2024
1 parent 43eab4e commit adf8440
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ pipeline {
}

stages {
stage('Checkout') {
steps {
scmSkip(deleteBuild: true)
}
}

stage('Setup Gradle') {
steps {
sh 'chmod +x gradlew'
Expand Down Expand Up @@ -80,14 +86,13 @@ pipeline {
steps {
withCredentials([
string(credentialsId: 'maven-signing-key', variable: 'ORG_GRADLE_PROJECT_signingKey'),
// string(credentialsId: 'maven-signing-key-id', variable: 'ORG_GRADLE_PROJECT_signingKeyId'),
string(credentialsId: 'maven-signing-key-password', variable: 'ORG_GRADLE_PROJECT_signingPassword'),
usernamePassword(
credentialsId: 'solo-studios-maven',
passwordVariable: 'ORG_GRADLE_PROJECT_SoloStudiosReleasesPassword',
usernameVariable: 'ORG_GRADLE_PROJECT_SoloStudiosReleasesUsername'
),
// TODO: does not yet exist
// TODO: does not yet exist (uncomment once added)
// usernamePassword(
// credentialsId: 'sonatype-maven-credentials',
// passwordVariable: 'ORG_GRADLE_PROJECT_SonatypePassword',
Expand Down Expand Up @@ -126,11 +131,10 @@ pipeline {
)

discordSend(
title: env.JOB_NAME + ' ' + env.BUILD_DISPLAY_NAME + (env.BRANCH_IS_PRIMARY ? '' : " ${env.BRANCH_NAME}"),
title: env.JOB_NAME + ' ' + env.BUILD_DISPLAY_NAME,
showChangeset: true,
enableArtifactsList: true,
link: env.BUILD_URL,
scmWebUrl: env.GIT_URL,
result: currentBuild.currentResult,
customAvatarUrl: 'https://github.com/PolyhedralDev.png',
customUsername: 'Solo Studios Jenkins',
Expand Down

0 comments on commit adf8440

Please sign in to comment.