Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Commit

Permalink
[eclipse/xtext#1533] Provide Jenkins job to build xtext-web Docker Image
Browse files Browse the repository at this point in the history
Signed-off-by: Nico Prediger <mail@nicoprediger.de>
  • Loading branch information
NicoPrediger committed Aug 15, 2019
1 parent be4d782 commit 72b33f9
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
39 changes: 39 additions & 0 deletions releng/docker/xtext-web-deploy/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
pipeline {
agent {
label "external"
}

options {
buildDiscarder(logRotator(numToKeepStr:'25'))
disableConcurrentBuilds()
timeout(time: 15, unit: 'MINUTES')
timestamps()
}

stages {
stage('Copy WAR') {
steps {
script {
step ([$class: 'CopyArtifact',
projectName: 'xtext-web/master',
filter: "build/maven-repository/org/eclipse/xtext/org.eclipse.xtext.web.example.jetty/*/org.eclipse.xtext.web.example.jetty-*.war",
target: 'releng/docker/xtext-web-deploy/xtext-web',
flatten: true
]);
}
sh "ls -lah releng/docker/xtext-web-deploy/xtext-web"
}
}

stage('Build Docker') {
steps {
dir("releng/docker/xtext-web-deploy/xtext-web") {
sh """
docker build --no-cache -t xtext/xtext-web:latest .
docker push xtext/xtext-web:latest
"""
}
}
}
}
}
3 changes: 3 additions & 0 deletions releng/docker/xtext-web-deploy/xtext-web/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM jetty:jre8

COPY --chown=999:999 org.eclipse.xtext.web.example.jetty-*.war /var/lib/jetty/webapps/ROOT.war

0 comments on commit 72b33f9

Please sign in to comment.