Initial commit.
This commit is contained in:
commit
d56878a4a1
6
Dockerfile
Normal file
6
Dockerfile
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
FROM debian:sid-slim
|
||||||
|
|
||||||
|
RUN apt-get -y update && \
|
||||||
|
apt-get -y upgrade && \
|
||||||
|
apt-get -y install scons pkg-config libx11-dev libxcursor-dev libxinerama-dev libgl1-mesa-dev \
|
||||||
|
libglu-dev libasound2-dev libpulse-dev libudev-dev libxi-dev libxrandr-dev clang
|
62
Jenkinsfile
vendored
Normal file
62
Jenkinsfile
vendored
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
pipeline {
|
||||||
|
agent {
|
||||||
|
dockerfile {
|
||||||
|
filename 'Dockerfile'
|
||||||
|
dir 'build'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
parameters {
|
||||||
|
booleanParam(name: 'CLEAN', defaultValue: false, description: 'Clean build')
|
||||||
|
string(name: 'REMOTE', defaultValue: 'https://github.com/godotengine/godot.git', description: 'Repository to build from')
|
||||||
|
string(name: 'BRANCH', defaultValue: '*/master')
|
||||||
|
}
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage('Checkout') {
|
||||||
|
steps {
|
||||||
|
checkout scmGit(
|
||||||
|
branches: [[name: BRANCH]],
|
||||||
|
extensions: [],
|
||||||
|
userRemoteConfigs: [[url: REMOTE]]
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Clean') {
|
||||||
|
when {
|
||||||
|
expression { params.CLEAN }
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
sh 'scons platform=linuxbsd -c'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Build Linux GCC') {
|
||||||
|
steps {
|
||||||
|
sh 'scons -j8 platform=linuxbsd use_lto=yes'
|
||||||
|
sh 'scons -j8 platform=linuxbsd target=template_release use_lto=yes'
|
||||||
|
sh 'scons -j8 platform=linuxbsd target=template_debug use_lto=yes'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Archive') {
|
||||||
|
steps {
|
||||||
|
archiveArtifacts artifacts: 'bin/*',
|
||||||
|
fingerprint: true,
|
||||||
|
onlyIfSuccessful: true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
failure {
|
||||||
|
mail from: 'Jenkins <noreply@mewin.de>',
|
||||||
|
to: 'jenkins@mewin.de',
|
||||||
|
cc: '',
|
||||||
|
bcc: '',
|
||||||
|
subject: "Jenkins Build Error (${env.JOB_NAME})",
|
||||||
|
body: "<b>Build Failure</b><br>Project: ${env.JOB_NAME} <br>Build Number: ${env.BUILD_NUMBER} <br> Build URL: ${env.BUILD_URL}",
|
||||||
|
charset: 'UTF-8',
|
||||||
|
mimeType: 'text/html',
|
||||||
|
replyTo: '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user