This repository has been archived by the owner on Jan 21, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 525
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # Dockerfile
- Loading branch information
Showing
3 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* NOTE: this Pipeline mainly aims at catching mistakes (wrongly formed Dockerfile, etc.) | ||
* This Pipeline is *not* used for actual image publishing. | ||
* This is currently handled through Automated Builds using standard Docker Hub feature | ||
*/ | ||
pipeline { | ||
agent { label 'linux' } | ||
|
||
options { | ||
timeout(time: 2, unit: 'MINUTES') | ||
buildDiscarder(logRotator(daysToKeepStr: '10')) | ||
timestamps() | ||
} | ||
|
||
triggers { | ||
pollSCM('H/24 * * * *') // once a day in case some hooks are missed | ||
} | ||
|
||
stages { | ||
stage('Build Docker Image') { | ||
steps { | ||
deleteDir() | ||
checkout scm | ||
sh 'make build' | ||
} | ||
} | ||
} | ||
} | ||
|
||
// vim: ft=groovy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
ROOT:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) | ||
IMAGE_NAME:=jenkins4eval/jnlp-slave:test | ||
|
||
build: | ||
docker build -t ${IMAGE_NAME} . |