Browse Source

Switch from Jenkins to Drone

Signed-off-by: Graham <gpe@openrs2.dev>
pull/86/head
Graham 2 years ago
parent
commit
1e13174cc2
  1. 22
      .drone.yml
  2. 1
      .gitignore
  3. 30
      Jenkinsfile
  4. 2
      README.md

22
.drone.yml

@ -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

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

30
Jenkinsfile

@ -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'
)
}
}
}

2
README.md

@ -1,6 +1,6 @@
# 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

Loading…
Cancel
Save