Browse Source

Switched CI to Jenkins from Drone

master
PHENOM 10 months ago
parent
commit
0371e2f7d6
2 changed files with 28 additions and 19 deletions
  1. 0
    19
      .drone.yml
  2. 28
    0
      Jenkinsfile

+ 0
- 19
.drone.yml View File

@@ -1,19 +0,0 @@
pipeline:
build_binary:
image: davidzemon/propworld
commands:
- openspin -b ./src/Main.spin -o demoboard.binary
zip:
image: alpine-zip
commands:
- zip ${DRONE_REPO_NAME}_${DRONE_TAG}_b${DRONE_BUILD_NUMBER}.zip demoboard.binary
when:
event: tag
gitea_release:
image: plugins/gitea-release
secrets: [ gitea_token ]
base_url: https://git.phenomic.net
files: ${DRONE_REPO_NAME}_${DRONE_TAG}_b${DRONE_BUILD_NUMBER}.zip
title: ${DRONE_REPO_NAME} ${DRONE_TAG}
when:
event: tag

+ 28
- 0
Jenkinsfile View File

@@ -0,0 +1,28 @@
pipeline {
agent none
stages {
stage('Build') {
agent {
docker {
image 'davidzemon/propworld:latest'
}
}
environment { HOME="." }
steps {
sh 'openspin -b ./src/Main.spin -o demoboard_b$BUILD_NUMBER.binary'
}
}
stage('Archive') {
agent {
docker {
image 'kramos/alpine-zip:latest'
args "--entrypoint=''"
}
}
steps {
sh 'zip $BUILD_TAG.zip demoboard_b$BUILD_NUMBER.binary'
archiveArtifacts '$BUILD_TAG.zip'
}
}
}
}

Loading…
Cancel
Save