From 2b5bf95399534fbd1eb73cd4cc926e5435ea3bc0 Mon Sep 17 00:00:00 2001 From: andrzej Date: Tue, 1 Oct 2024 11:04:52 +0200 Subject: [PATCH] Jenkinsfile --- Jenkinsfile | 16 ++++++++++++++++ README.md | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..67aacbe --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,16 @@ +pipeline { +agent any + stages{ + stage('build'){ + steps{ + sh 'npm install' + sh 'next build' + } + } + stage('deploy'){ + steps{ + sshPublisher(publishers: [sshPublisherDesc(configName: 'Demos', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: '', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: 'ssh-uploads/subman', remoteDirectorySDF: false, removePrefix: '', sourceFiles: '.next/server/**')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)]) + } + } + } +} diff --git a/README.md b/README.md index 87ccaec..b5f4302 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,8 @@ I developed this project as a demonstration of my full-stack development abiliti My previous attempt at this project was a Nodejs server with a React frontend, but this version is much better! ## What it does + Subman was inspired by my experiences submitting short fiction to magazines for publication. It allows the user to track where submissions are pending, in addition to meta-data such as genres, word count and so on. What you see here is the Minimum Shippable Product. +