Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New branch #38

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from
10 changes: 10 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
tasks:
- init: npm install && npm run build
command: npm run start
ports:
- port: 8080
onOpen: ignore
- port: 3000
onOpen: open-preview
- port: 4445
onOpen: notify
13 changes: 8 additions & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,28 @@ pipeline {
stages {
stage('Build Application') {
steps {
nodejs("11.9") { sh "npm install" }
nodejs('12.6') { sh 'npm install' }
}
}
stage('Run Unit Tests') {
steps {
nodejs("11.9") { sh "npm test" }
nodejs('12.6') {sh 'npm test'}
}
}
stage('Deploy Application') {
steps {
nodejs("11.9") { sh "npm start &" }
nodejs('12.6') { sh 'npm start &' }
}
}
stage('Run Functional Tests') {
stage('Run Functional Tests on Sauce Labs') {
steps {
sauce('496fc4d5-5eac-43f3-813d-dc31708a20be') {
nodejs("11.9") { sh "npm run test-wdio" }
sauceconnect(options: '', sauceConnectPath: '') {
nodejs('12.6') { sh 'npm run test-wdio' }
}
}
}
}

}
}
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,11 @@ Specifics for the content of this pipeline will be contained in other docs and/o
This code is provided on an "AS-IS” basis without warranty of any kind, either express or implied, including without limitation any implied warranties of condition, uninterrupted use, merchantability, fitness for a particular purpose, or non-infringement. Your tests and testing environments may require you to modify this framework. Issues regarding this framework should be submitted through GitHub. For questions regarding Sauce Labs integration, please see the Sauce Labs documentation at https://wiki.saucelabs.com/. This framework is not maintained by Sauce Labs Support.

# Pull Requests
One of the main features of this repository is to have a Jenkins pipeline kick off automatically from an open pull request. Due to the nature of this repo and its goals, please direct pull requests into the `develop` branch instead of the `master` branch.

One of the main features of this repository is to have a Jenkins pipeline kick off automatically from an open pull request. Due to the nature of this repo and its goals, please direct pull requests into the `develop` branch instead of the `master` branch.

#### Try Demo in Gitpod
Select the button below to try this demo in [Gitpod](https://www.gitpod.io/)

[![Open in Gitpod](open-in-gitpod.png)](https://gitpod.io/#https://github.com/joshmgrant/sample-Jenkins-pipeline-1/)

Binary file added open-in-gitpod.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading