From 79e39d8ae002fec15013eb452017fcf8ad5b639f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Madis=20M=C3=A4gi?= Date: Wed, 27 Oct 2021 19:18:18 +0300 Subject: [PATCH] Add Jenkinsfile --- Jenkinsfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..7517c8f --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,22 @@ +#!/usr/bin/groovy +directory = "openwrt-camera-image" +pipeline { + agent any + stages { + stage("Setup") { + steps { + dir(directory) { + deleteDir() + checkout scm + } + } + } + stage("Build") { + steps { + dir(directory) { + sh "sh script.sh" + } + } + } + } +}