HidekoBot/.drone.yml
Beatrice DellacĂ  5dcfd7339e
Some checks failed
continuous-integration/drone/push Build is running
continuous-integration/drone Build is failing
Update DroneCI integration to allow artifact uploading
2023-01-15 17:53:07 +01:00

39 lines
991 B
YAML

kind: pipeline
name: default
trigger:
branch:
- main
steps:
- name: build
image: maven:3-eclipse-temurin-16
commands:
- mvn install --no-transfer-progress -DskipTests=true -Dmaven.javadoc.skip=true -B -V
# - mvn javadoc:javadoc
- mvn test -B
- name: code-analysis
image: maven:3-eclipse-temurin-16
commands:
- mvn sonar:sonar --no-transfer-progress -Dsonar.projectKey=$SONAR_PROJECT_KEY -Dsonar.host.url=$SONAR_INSTANCE_URL -Dsonar.login=$SONAR_LOGIN_KEY
environment:
SONAR_PROJECT_KEY:
from_secret: sonar_project_key
SONAR_INSTANCE_URL:
from_secret: sonar_instance_url
SONAR_LOGIN_KEY:
from_secret: sonar_login_key
- name: upload-artifact
image: appleboy/drone-scp
settings:
host:
from_secret: ssh_host
port: 2222
username: upload
password:
from_secret: ssh_password
source:
- target/*depend*jar
target: /home/upload/sftp