From 5a1ba7092447cce18fbf76eea4ed788cc1f7b3dd Mon Sep 17 00:00:00 2001 From: kakwa Date: Tue, 25 Apr 2017 09:58:11 +0200 Subject: [PATCH] trying to specify nodes --- Jenkinsfile | 50 +++++++++++++++++++++++++++----------------------- 1 file changed, 27 insertions(+), 23 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 658efe8..587b5f9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,35 +1,39 @@ pipeline { - agent any + agent none stages { - stage('error') { + stage('Compile') { steps { parallel( - "openbsd-6.1": { - git 'https://github.com/kakwa/uts-server' - sh 'cmake . -DBUNDLE_CIVETWEB=ON' - sh 'make' - + "OpenBSD 6.1": { + node('openbsd-6.1') { + git 'https://github.com/kakwa/uts-server' + sh 'cmake . -DBUNDLE_CIVETWEB=ON' + sh 'make' + } }, - "freebsd-11": { - git 'https://github.com/kakwa/uts-server' - sh 'cmake . -DBUNDLE_CIVETWEB=ON' - sh 'make' - + "FreeBSD 11": { + node('freebsd-11') { + git 'https://github.com/kakwa/uts-server' + sh 'cmake . -DBUNDLE_CIVETWEB=ON' + sh 'make' + } }, - "centos-7": { - git 'https://github.com/kakwa/uts-server' - sh 'cmake . -DBUNDLE_CIVETWEB=ON' - sh 'make' - + "CentOS 7": { + node('centos-7') { + git 'https://github.com/kakwa/uts-server' + sh 'cmake . -DBUNDLE_CIVETWEB=ON' + sh 'make' + } }, - "debian-8": { - git 'https://github.com/kakwa/uts-server' - sh 'cmake . -DBUNDLE_CIVETWEB=ON' - sh 'make' - + "Debian 8": { + node('debian-8') { + git 'https://github.com/kakwa/uts-server' + sh 'cmake . -DBUNDLE_CIVETWEB=ON' + sh 'make' + } } ) } } } -} \ No newline at end of file +}