Change-Id: Ib1c0d0205550033e6efbed6e28848edc4a7f1366
Signed-off-by: Wesley Hirsch <wesley.hirsch@riftio.com>
--- /dev/null
+FROM ubuntu:16.04
+
+RUN apt-get update && apt-get -y install python3 curl build-essential
+RUN curl http://repos.riftio.com/public/xenial-riftware-public-key | apt-key add - && \
+ curl -o /etc/apt/sources.list.d/OSM.list http://buildtracker.riftio.com/repo_file/ub16/OSM/ && \
+ apt-get update && \
+ apt-get -y install rw.toolchain-rwbase \
+ rw.toolchain-rwtoolchain \
+ rw.core.mgmt-mgmt \
+ rw.core.util-util \
+ rw.core.rwvx-rwvx \
+ rw.core.rwvx-rwdts \
+ rw.automation.core-RWAUTO \
+ rw.tools-container-tools \
+ rw.tools-scripts \
+ python-cinderclient \
+ libxml2-dev \
+ libxslt-dev
+
+RUN /usr/rift/container_tools/mkcontainer --modes build --modes ext --repo OSM
+
+RUN chmod 777 /usr/rift /usr/rift/usr/share
+
+RUN rm -rf /tmp/npm-cache
--- /dev/null
+pipeline {
+ agent any
+ stages {
+ stage("Build") {
+ agent {
+ dockerfile true
+ }
+ steps {
+ sh 'make NOT_DEVELOPER_BUILD=TRUE -j16 package'
+ stash name: "deb-files", includes: ".build/*.deb"
+ }
+ }
+ stage("Repo Component") {
+ steps {
+ unstash "deb-files"
+ sh '''
+ mkdir -p pool/UI
+ mv .build/*.deb pool/UI/
+ mkdir -p dists/$RELEASE/UI/binary-amd64
+ apt-ftparchive packages pool/UI > dists/$RELEASE/UI/binary-amd64/Packages
+ gzip -9fk dists/$RELEASE/UI/binary-amd64/Packages
+ '''
+ archiveArtifacts artifacts: "dists/**,pool/UI/*.deb"
+ }
+ }
+ }
+}