From ac504288bc10bad91d742f2377a7f28ae68e5d9b Mon Sep 17 00:00:00 2001 From: Jan Przybylski Date: Tue, 24 Nov 2020 00:59:10 +0100 Subject: [PATCH] test --- Jenkinsfile | 23 ----------------------- Makefile | 2 -- app.R | 0 jenkins.R | 8 ++++++++ 4 files changed, 8 insertions(+), 25 deletions(-) delete mode 100644 Jenkinsfile delete mode 100644 Makefile delete mode 100644 app.R create mode 100644 jenkins.R diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 9ca0212..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,23 +0,0 @@ -pipeline { - agent any - - stages { - stage('Build') { - steps { - echo 'Building..' - bat 'make' - } - } - stage('Test') { - steps { - echo 'Testing..' - bat 'make check || true' - } - } - stage('Deploy') { - steps { - echo 'Deploying....' - } - } - } -} diff --git a/Makefile b/Makefile deleted file mode 100644 index 57cd6a0..0000000 --- a/Makefile +++ /dev/null @@ -1,2 +0,0 @@ -app1.R: app.R - R CMD BATCH app.R \ No newline at end of file diff --git a/app.R b/app.R deleted file mode 100644 index e69de29..0000000 diff --git a/jenkins.R b/jenkins.R new file mode 100644 index 0000000..de952e9 --- /dev/null +++ b/jenkins.R @@ -0,0 +1,8 @@ +use_jenkins <- function() { + use_make() + use_template( + "Jenkinsfile", + data = list(name = project_name()) + ) + use_build_ignore("Jenkinsfile") +} \ No newline at end of file