Switch from Jenkins to Drone

Signed-off-by: Graham <gpe@openrs2.dev>
bzip2
Graham 5 years ago
parent 7996d327ff
commit 1e13174cc2
  1. 22
      .drone.yml
  2. 1
      .gitignore
  3. 30
      Jenkinsfile
  4. 2
      README.md

@ -0,0 +1,22 @@
kind: pipeline
type: docker
name: default
steps:
- name: build
image: registry.openrs2.dev/openrs2-dev
commands:
- ./gradlew --no-daemon clean build
- name: deploy
image: registry.openrs2.dev/openrs2-dev
commands:
- ./gradlew --no-daemon publish
environment:
ORG_GRADLE_PROJECT_openrs2RepoUsername:
from_secret: repo_username
ORG_GRADLE_PROJECT_openrs2RepoPassword:
from_secret: repo_password
when:
branch:
- master

1
.gitignore vendored

@ -1,4 +1,5 @@
.* .*
!.drone.yml
!.editorconfig !.editorconfig
!.git* !.git*
!.idea !.idea

30
Jenkinsfile vendored

@ -1,30 +0,0 @@
pipeline {
agent any
stages {
stage('Build') {
steps {
withCredentials([usernamePassword(
credentialsId: 'archiva',
usernameVariable: 'ORG_GRADLE_PROJECT_openrs2RepoUsername',
passwordVariable: 'ORG_GRADLE_PROJECT_openrs2RepoPassword'
)]) {
withGradle {
sh './gradlew --no-daemon clean build publish'
}
}
}
}
}
post {
always {
junit '**/build/test-results/test/*.xml'
jacoco(
execPattern: '**/build/jacoco/test.exec',
classPattern: '**/build/classes/*/main',
sourcePattern: '**/src/main'
)
}
}
}

@ -1,6 +1,6 @@
# OpenRS2 # OpenRS2
[![Build status badge](https://build.openrs2.dev/buildStatus/icon?job=openrs2&build=lastCompleted)](https://build.openrs2.dev/job/openrs2/) [![Build status badge](https://build.openrs2.dev/api/badges/openrs2/openrs2/status.svg)](https://build.openrs2.dev/openrs2/openrs2/)
## Introduction ## Introduction

Loading…
Cancel
Save