From de61253db625753dcc28733ad8c149a3e646958f Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Fri, 6 Oct 2023 12:02:38 -0700 Subject: [PATCH 01/25] added jenkinsfile with initial step for init --- Jenkinsfile | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..11aecd1 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,10 @@ +pipeline { + agent any + + stages { + stage('Init') { + steps { + sh 'rbenv local 3.2.2' + } + } +} From b70b0846a1f886f629acbe823722a3e61b247ead Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Fri, 6 Oct 2023 12:04:46 -0700 Subject: [PATCH 02/25] syntax error in Jenkinsfile --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 11aecd1..599fee5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,6 +5,7 @@ pipeline { stage('Init') { steps { sh 'rbenv local 3.2.2' + } } } } From 5cc79ed54d4d6c0759c849a68e2ea8015a5b3507 Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Fri, 6 Oct 2023 13:41:53 -0700 Subject: [PATCH 03/25] added line to add db name to the env file --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 599fee5..d615d2b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,6 +5,7 @@ pipeline { stage('Init') { steps { sh 'rbenv local 3.2.2' + sh 'echo "ENV[\"DB_NAME\"] ||= \"url_shortener.db\" >> .env.rb' } } } From 6c40ae63115cba0f0a8e1679f2ba0627cca92701 Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Fri, 6 Oct 2023 13:47:11 -0700 Subject: [PATCH 04/25] syntax error in Jenkinsfile, missing " at the end of the line to add to the env file --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index d615d2b..acee9fa 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,7 +5,7 @@ pipeline { stage('Init') { steps { sh 'rbenv local 3.2.2' - sh 'echo "ENV[\"DB_NAME\"] ||= \"url_shortener.db\" >> .env.rb' + sh 'echo "ENV[\"DB_NAME\"] ||= \"url_shortener.db\"" >> .env.rb' } } } From 38f92d83c3c59d2905d92294596ab4301ced0a98 Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Fri, 6 Oct 2023 13:57:42 -0700 Subject: [PATCH 05/25] add app session secret generation to the mix --- Jenkinsfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index acee9fa..ddab092 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,7 +5,9 @@ pipeline { stage('Init') { steps { sh 'rbenv local 3.2.2' + sh 'echo "ENV[\"APP_SESSION_SECRET"] = \"$(openssl rand -base64 64)\"" >> .env.rb' sh 'echo "ENV[\"DB_NAME\"] ||= \"url_shortener.db\"" >> .env.rb' + sh 'cat .env.rb' } } } From 03eafcdf4c6499699749baa6f353e64bda721c3b Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Fri, 6 Oct 2023 13:59:12 -0700 Subject: [PATCH 06/25] reset the file on the initial append --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index ddab092..01d1974 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,7 +5,7 @@ pipeline { stage('Init') { steps { sh 'rbenv local 3.2.2' - sh 'echo "ENV[\"APP_SESSION_SECRET"] = \"$(openssl rand -base64 64)\"" >> .env.rb' + sh 'echo "ENV[\"APP_SESSION_SECRET"] = \"$(openssl rand -base64 64)\"" > .env.rb' sh 'echo "ENV[\"DB_NAME\"] ||= \"url_shortener.db\"" >> .env.rb' sh 'cat .env.rb' } From 95eb1fea4c1de97876883a6dc4428562d09739a6 Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Fri, 6 Oct 2023 14:01:55 -0700 Subject: [PATCH 07/25] trying with different quotes around commands --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 01d1974..9d6587d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,7 +5,7 @@ pipeline { stage('Init') { steps { sh 'rbenv local 3.2.2' - sh 'echo "ENV[\"APP_SESSION_SECRET"] = \"$(openssl rand -base64 64)\"" > .env.rb' + sh `echo 'ENV["APP_SESSION_SECRET"] = "$(openssl rand -base64 64)"' > .env.rb` sh 'echo "ENV[\"DB_NAME\"] ||= \"url_shortener.db\"" >> .env.rb' sh 'cat .env.rb' } From 435eeb9601bae7c2360520e1cf7c07b3ba1926fe Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Fri, 6 Oct 2023 14:02:54 -0700 Subject: [PATCH 08/25] another quotes try --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9d6587d..7f8db07 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,7 +5,7 @@ pipeline { stage('Init') { steps { sh 'rbenv local 3.2.2' - sh `echo 'ENV["APP_SESSION_SECRET"] = "$(openssl rand -base64 64)"' > .env.rb` + sh 'echo \'ENV["APP_SESSION_SECRET"] = "$(openssl rand -base64 64)"\' > .env.rb' sh 'echo "ENV[\"DB_NAME\"] ||= \"url_shortener.db\"" >> .env.rb' sh 'cat .env.rb' } From e1d0c6162d0a522fc12a0c4e4ce222ef6305d61d Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Fri, 6 Oct 2023 16:49:03 -0700 Subject: [PATCH 09/25] trying again --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7f8db07..3e13a44 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,8 +5,8 @@ pipeline { stage('Init') { steps { sh 'rbenv local 3.2.2' - sh 'echo \'ENV["APP_SESSION_SECRET"] = "$(openssl rand -base64 64)"\' > .env.rb' - sh 'echo "ENV[\"DB_NAME\"] ||= \"url_shortener.db\"" >> .env.rb' + sh 'echo \\\'ENV[\\\"APP_SESSION_SECRET\\\"]=$(ruby -rsecurerandom -e \\\"puts SecureRandom.base64(64).inspect\\\")\\\' > .env.rb' + sh 'echo "ENV[\\\"DB_NAME\\\"] ||= \\\"url_shortener.db\\\"" >> .env.rb' sh 'cat .env.rb' } } From 721ce33adbd6f263cd1a2817ef12eebeb9272903 Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Fri, 6 Oct 2023 16:59:16 -0700 Subject: [PATCH 10/25] trying by setting the output of the base64 generation to a jenkins variable to use later --- Jenkinsfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3e13a44..b2986d9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,9 +5,10 @@ pipeline { stage('Init') { steps { sh 'rbenv local 3.2.2' - sh 'echo \\\'ENV[\\\"APP_SESSION_SECRET\\\"]=$(ruby -rsecurerandom -e \\\"puts SecureRandom.base64(64).inspect\\\")\\\' > .env.rb' - sh 'echo "ENV[\\\"DB_NAME\\\"] ||= \\\"url_shortener.db\\\"" >> .env.rb' - sh 'cat .env.rb' + def secret = sh(script: 'ruby -rsecurerandom -e "puts SecureRandom.base64(64).inspect"', returnStdout: true) + sh 'echo {secret}' + //sh 'echo "ENV[\\\"DB_NAME\\\"] ||= \\\"url_shortener.db\\\"" >> .env.rb' + //sh 'cat .env.rb' } } } From ee5a6e673b2aaacd216ea98cb3eb413a5fc54726 Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Fri, 6 Oct 2023 17:23:56 -0700 Subject: [PATCH 11/25] attempting to use variables --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b2986d9..3992054 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,8 +5,8 @@ pipeline { stage('Init') { steps { sh 'rbenv local 3.2.2' - def secret = sh(script: 'ruby -rsecurerandom -e "puts SecureRandom.base64(64).inspect"', returnStdout: true) - sh 'echo {secret}' + APP_SECRET = sh (script: 'ruby -rsecurerandom -e "puts SecureRandom.base64(64).inspect"', returnStdout: true).trim() + sh 'echo ${APP_SECRET}' //sh 'echo "ENV[\\\"DB_NAME\\\"] ||= \\\"url_shortener.db\\\"" >> .env.rb' //sh 'cat .env.rb' } From ef9cef8915ecc7c33d4dc25ec6fd87ebfaa3aacf Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Fri, 6 Oct 2023 17:25:53 -0700 Subject: [PATCH 12/25] wrap it in a script --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3992054..23491a6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,7 +5,9 @@ pipeline { stage('Init') { steps { sh 'rbenv local 3.2.2' - APP_SECRET = sh (script: 'ruby -rsecurerandom -e "puts SecureRandom.base64(64).inspect"', returnStdout: true).trim() + script { + APP_SECRET = sh (script: 'ruby -rsecurerandom -e "puts SecureRandom.base64(64).inspect"', returnStdout: true).trim() + } sh 'echo ${APP_SECRET}' //sh 'echo "ENV[\\\"DB_NAME\\\"] ||= \\\"url_shortener.db\\\"" >> .env.rb' //sh 'cat .env.rb' From 3a71e58e222b0ec71e6fbd00f94cb5ddf55a96f0 Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Fri, 6 Oct 2023 17:35:21 -0700 Subject: [PATCH 13/25] trying to run the script, nothing else --- Jenkinsfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 23491a6..8a7279f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,10 +5,8 @@ pipeline { stage('Init') { steps { sh 'rbenv local 3.2.2' - script { - APP_SECRET = sh (script: 'ruby -rsecurerandom -e "puts SecureRandom.base64(64).inspect"', returnStdout: true).trim() - } - sh 'echo ${APP_SECRET}' + sh (script: 'ruby -rsecurerandom -e "puts SecureRandom.base64(64).inspect"', returnStdout: true).trim() + //sh 'echo ${APP_SECRET}' //sh 'echo "ENV[\\\"DB_NAME\\\"] ||= \\\"url_shortener.db\\\"" >> .env.rb' //sh 'cat .env.rb' } From a4fbdeabe348928c086277eb42a326b0934e57ef Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Fri, 6 Oct 2023 17:39:45 -0700 Subject: [PATCH 14/25] going back to the old style --- Jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8a7279f..4982076 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,8 +5,7 @@ pipeline { stage('Init') { steps { sh 'rbenv local 3.2.2' - sh (script: 'ruby -rsecurerandom -e "puts SecureRandom.base64(64).inspect"', returnStdout: true).trim() - //sh 'echo ${APP_SECRET}' + sh 'echo $(ruby -rsecurerandom -e \\\"puts SecureRandom.base64(64).inspect\\\")' //sh 'echo "ENV[\\\"DB_NAME\\\"] ||= \\\"url_shortener.db\\\"" >> .env.rb' //sh 'cat .env.rb' } From b5af621ee202880402b468648652b6a67c7e20fb Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Fri, 6 Oct 2023 17:41:29 -0700 Subject: [PATCH 15/25] another shot --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4982076..e0aebe8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,7 +5,7 @@ pipeline { stage('Init') { steps { sh 'rbenv local 3.2.2' - sh 'echo $(ruby -rsecurerandom -e \\\"puts SecureRandom.base64(64).inspect\\\")' + sh 'echo \\\"$(ruby -rsecurerandom -e \\\'puts SecureRandom.base64(64).inspect\\\')\\\"' //sh 'echo "ENV[\\\"DB_NAME\\\"] ||= \\\"url_shortener.db\\\"" >> .env.rb' //sh 'cat .env.rb' } From 6795508d3e8a07fc83fd40b8da7f83a068c762e9 Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Fri, 6 Oct 2023 17:42:48 -0700 Subject: [PATCH 16/25] simplified --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index e0aebe8..d194cf2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,7 +5,7 @@ pipeline { stage('Init') { steps { sh 'rbenv local 3.2.2' - sh 'echo \\\"$(ruby -rsecurerandom -e \\\'puts SecureRandom.base64(64).inspect\\\')\\\"' + sh 'ruby -rsecurerandom -e \\\'puts SecureRandom.base64(64).inspect()\\\'' //sh 'echo "ENV[\\\"DB_NAME\\\"] ||= \\\"url_shortener.db\\\"" >> .env.rb' //sh 'cat .env.rb' } From d972cc2c3b50a6601004df28b8374c1d935d2004 Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Fri, 6 Oct 2023 18:04:54 -0700 Subject: [PATCH 17/25] another shot --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index d194cf2..08c5ed8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,7 +5,7 @@ pipeline { stage('Init') { steps { sh 'rbenv local 3.2.2' - sh 'ruby -rsecurerandom -e \\\'puts SecureRandom.base64(64).inspect()\\\'' + sh "ruby -rsecurerandom -e \\\'puts SecureRandom.base64(64).inspect()\\\'" //sh 'echo "ENV[\\\"DB_NAME\\\"] ||= \\\"url_shortener.db\\\"" >> .env.rb' //sh 'cat .env.rb' } From 6160174c5d38d2c6e309269cf98d9380d862b8ef Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Fri, 6 Oct 2023 18:07:07 -0700 Subject: [PATCH 18/25] generate secret in rb file --- Jenkinsfile | 2 +- secret.rb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 secret.rb diff --git a/Jenkinsfile b/Jenkinsfile index 08c5ed8..4835361 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,7 +5,7 @@ pipeline { stage('Init') { steps { sh 'rbenv local 3.2.2' - sh "ruby -rsecurerandom -e \\\'puts SecureRandom.base64(64).inspect()\\\'" + sh 'ruby secret.rb' //sh 'echo "ENV[\\\"DB_NAME\\\"] ||= \\\"url_shortener.db\\\"" >> .env.rb' //sh 'cat .env.rb' } diff --git a/secret.rb b/secret.rb new file mode 100644 index 0000000..2672149 --- /dev/null +++ b/secret.rb @@ -0,0 +1,2 @@ +require 'securerandom' +puts SecureRandom.base64(64).inspect() From 7a32edb6e33ca286754d130fc69c571109efbc24 Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Fri, 6 Oct 2023 18:09:17 -0700 Subject: [PATCH 19/25] wrap it in an env var and add it to the env file --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4835361..7973208 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,9 +5,9 @@ pipeline { stage('Init') { steps { sh 'rbenv local 3.2.2' - sh 'ruby secret.rb' + sh 'echo \\\'ENV[\\\"APP_SESSION_SECRET\\\"] ||= $(ruby secret.rb)\\\' > .env.rb' //sh 'echo "ENV[\\\"DB_NAME\\\"] ||= \\\"url_shortener.db\\\"" >> .env.rb' - //sh 'cat .env.rb' + sh 'cat .env.rb' } } } From 450dc26df7322cda44d5998aa654dd0b2f737181 Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Fri, 6 Oct 2023 18:11:00 -0700 Subject: [PATCH 20/25] another attempt --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7973208..120ef81 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,7 +5,7 @@ pipeline { stage('Init') { steps { sh 'rbenv local 3.2.2' - sh 'echo \\\'ENV[\\\"APP_SESSION_SECRET\\\"] ||= $(ruby secret.rb)\\\' > .env.rb' + sh 'echo ENV[\\\"APP_SESSION_SECRET\\\"] ||= $(ruby secret.rb) > .env.rb' //sh 'echo "ENV[\\\"DB_NAME\\\"] ||= \\\"url_shortener.db\\\"" >> .env.rb' sh 'cat .env.rb' } From e720761106c42ab21c474325f35c968981684766 Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Fri, 6 Oct 2023 18:33:30 -0700 Subject: [PATCH 21/25] try it again --- Jenkinsfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 120ef81..4ef12f7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,12 +1,17 @@ pipeline { agent any + environment { + APP_SESSION_SECRET = '' + DB_NAME = 'url_shortener.db' + } stages { stage('Init') { steps { sh 'rbenv local 3.2.2' - sh 'echo ENV[\\\"APP_SESSION_SECRET\\\"] ||= $(ruby secret.rb) > .env.rb' - //sh 'echo "ENV[\\\"DB_NAME\\\"] ||= \\\"url_shortener.db\\\"" >> .env.rb' + env.APP_SESSION_SECRET = sh(script: 'ruby secret.rb', returnStdout: true) + sh 'echo "ENV[\\\"APP_SESSION_SECRET\\\"] ||= $(ruby secret.rb)" > .env.rb' + sh 'echo "ENV[\\\"DB_NAME\\\"] ||= \\\"${DB_NAME}\\\"" >> .env.rb' sh 'cat .env.rb' } } From 2448c93fa73085ca771adf8ad9d628bce12221c1 Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Fri, 6 Oct 2023 18:35:00 -0700 Subject: [PATCH 22/25] wrap setting the env var in a script wrapper --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4ef12f7..eec1855 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,7 +9,9 @@ pipeline { stage('Init') { steps { sh 'rbenv local 3.2.2' - env.APP_SESSION_SECRET = sh(script: 'ruby secret.rb', returnStdout: true) + script { + env.APP_SESSION_SECRET = sh(script: 'ruby secret.rb', returnStdout: true) + } sh 'echo "ENV[\\\"APP_SESSION_SECRET\\\"] ||= $(ruby secret.rb)" > .env.rb' sh 'echo "ENV[\\\"DB_NAME\\\"] ||= \\\"${DB_NAME}\\\"" >> .env.rb' sh 'cat .env.rb' From c0a0548662411388d69020485f13e6a3ace19b90 Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Fri, 6 Oct 2023 18:40:51 -0700 Subject: [PATCH 23/25] added dependencies stage --- Jenkinsfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index eec1855..8bda569 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,5 +17,9 @@ pipeline { sh 'cat .env.rb' } } + stage('Build dependencies') { + sh 'bundle install' + sh 'sequel -m db/migrations sqlite://db/${DB_NAME}' + } } } From a0ba8ba9f3361f1b993d7ce3fee1f7874b299d25 Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Fri, 6 Oct 2023 18:42:44 -0700 Subject: [PATCH 24/25] wrap steps in the steps block --- Jenkinsfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8bda569..cdedc5e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,8 +18,10 @@ pipeline { } } stage('Build dependencies') { - sh 'bundle install' - sh 'sequel -m db/migrations sqlite://db/${DB_NAME}' + steps { + sh 'bundle install' + sh 'sequel -m db/migrations sqlite://db/${DB_NAME}' + } } } } From 47e5a093b4cc6bb639ad2215d8fd5e33ec0d1d37 Mon Sep 17 00:00:00 2001 From: Adam Townsend Date: Fri, 6 Oct 2023 20:00:04 -0700 Subject: [PATCH 25/25] added tests stage to jenkinsfile and added a note to the readme about pkgconf --- Jenkinsfile | 5 +++++ README.md | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index cdedc5e..c944ffa 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,5 +23,10 @@ pipeline { sh 'sequel -m db/migrations sqlite://db/${DB_NAME}' } } + stage('Run tests') { + steps { + sh 'cucumber' + } + } } } diff --git a/README.md b/README.md index 7958b5a..8116855 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,8 @@ Roda, Falcon, Sequel, and SQLite the point of this project is to quickly build something and work on continuous deployment while making small refinements to the functional pieces. -the only outside piece of software that this project relies on is sqlite3. +the outside pieces of software that this project relies on are sqlite3 and pkgconf. + first you have to install the dependencies: