From ac7e4d045a7efd2926e64f72d707eea09c1abb00 Mon Sep 17 00:00:00 2001 From: momerjavaidSystemsltd <105357097+momerjavaidSystemsltd@users.noreply.github.com> Date: Mon, 6 Jun 2022 04:15:49 -0700 Subject: [PATCH] Create Jenkinsfile --- Jenkinsfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..658dccb --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,17 @@ +node { + stage ('Clone') { + checkout scm 'https://github.com/justalever/demo_blog_rails.git' + } + stage ('Build') { + sh gem install bundler + sh bundle install + sh 'cp config/database-gitlab.yml config/database.yml' + sh 'bundle exec rake db:create db:migrate RAILS_ENV=test' + sh 'bundle exec rake test' + + } + stage ('Tests') { + + } + +}