HidekoBot/.drone.yml

39 lines
1003 B
YAML
Raw Normal View History

2022-08-25 22:14:48 +02:00
kind: pipeline
name: default
trigger:
branch:
- main
steps:
- name: build
image: maven:3-eclipse-temurin-16
commands:
2023-01-14 23:49:20 +01:00
- mvn install --no-transfer-progress -DskipTests=true -Dmaven.javadoc.skip=true -B -V
# - mvn javadoc:javadoc
2022-08-25 22:14:48 +02:00
- mvn test -B
2023-01-14 21:49:47 +01:00
- name: code-analysis
2023-01-14 23:27:50 +01:00
image: maven:3-eclipse-temurin-16
commands:
2023-01-14 23:49:20 +01:00
- mvn sonar:sonar --no-transfer-progress -Dsonar.projectKey=$SONAR_PROJECT_KEY -Dsonar.host.url=$SONAR_INSTANCE_URL -Dsonar.login=$SONAR_LOGIN_KEY
2023-01-14 23:27:50 +01:00
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