forked from openrs2/openrs2
parent
7996d327ff
commit
1e13174cc2
@ -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,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' |
||||
) |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue