Added renovate and Jenkins
Some checks failed
Plugins/ShowControl/pipeline/head There was a failure building this commit
Some checks failed
Plugins/ShowControl/pipeline/head There was a failure building this commit
This commit is contained in:
parent
47f496133c
commit
50f3c33d4e
3 changed files with 46 additions and 11 deletions
11
.github/dependabot.yml
vendored
11
.github/dependabot.yml
vendored
|
@ -1,11 +0,0 @@
|
||||||
# To get started with Dependabot version updates, you'll need to specify which
|
|
||||||
# package ecosystems to update and where the package manifests are located.
|
|
||||||
# Please see the documentation for all configuration options:
|
|
||||||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
|
|
||||||
|
|
||||||
version: 2
|
|
||||||
updates:
|
|
||||||
- package-ecosystem: "maven" # See documentation for possible values
|
|
||||||
directory: "/" # Location of package manifests
|
|
||||||
schedule:
|
|
||||||
interval: "daily"
|
|
43
Jenkinsfile
vendored
Normal file
43
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
def projectTitle = "ShowControl"
|
||||||
|
|
||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
|
||||||
|
tools {
|
||||||
|
maven "maven-3.9.0"
|
||||||
|
jdk "jdk11-adoptium"
|
||||||
|
}
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage('Build Artifact') {
|
||||||
|
steps {
|
||||||
|
sh "mvn clean package -Dnoobfus=true"
|
||||||
|
archiveArtifacts artifacts: 'target/*.jar'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
always {
|
||||||
|
script {
|
||||||
|
def discordFooter = "Copyright © SBDevelopment"
|
||||||
|
def buildNumber = currentBuild.number
|
||||||
|
def buildStatus = currentBuild.result
|
||||||
|
def prevBuild = currentBuild.getPreviousBuild()
|
||||||
|
def prevGitRev = prevBuild ? env.GIT_PREVIOUS_COMMIT : ''
|
||||||
|
def gitRange = prevGitRev ? "${prevGitRev}..HEAD" : "HEAD~1..HEAD"
|
||||||
|
def gitChanges = sh(returnStdout: true, script: "git log --pretty=format:\"- %h %s\" ${gitRange}")
|
||||||
|
def discordTitle = "Build #${buildNumber} - ${projectTitle}"
|
||||||
|
def discordDescription = "**Status:** ${buildStatus}\n**Changes:**\n${gitChanges}"
|
||||||
|
|
||||||
|
discordSend(
|
||||||
|
webhookURL: 'https://discord.com/api/webhooks/1091375346064035980/PRy-w2ZPpYjwYMllnbw6mHD_onFcXSbvq9BYkfP8-mBXi-bB-y1XzJkC4SDwHmffcnjS',
|
||||||
|
title: discordTitle,
|
||||||
|
description: discordDescription,
|
||||||
|
footer: discordFooter,
|
||||||
|
result: currentBuild.currentResult
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
3
renovate.json
Normal file
3
renovate.json
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue