-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4f2286
commit 1d3efa5
Showing
4 changed files
with
54 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
pipeline { | ||
agent { label 'docker' } | ||
stages { | ||
stage('Parallel') { | ||
parallel { | ||
stage('Accessibility Report') { | ||
stages { | ||
stage('Build Environment') { | ||
steps { | ||
sh "docker build --target=ui-testing -t openstax/tutor-js:ui-testing ." | ||
} | ||
} | ||
stage('Run Audit') { | ||
steps { | ||
sh 'docker run -v $(pwd):/code -v /code/node_modules openstax/tutor-js:ui-testing node tutor/scripts/accessibility-audit --json=accessibility-report.json' | ||
archiveArtifacts artifacts: 'accessibility-report.json', fingerprint: true | ||
} | ||
} | ||
} | ||
} | ||
stage('Docker') { | ||
stages { | ||
stage('Build') { | ||
steps { | ||
sh "docker build -t openstax/tutor-js:dev --build-arg PUBLIC_PATH='https://tutor-assets.sandbox.openstax.org/' ." | ||
} | ||
} | ||
stage('Push') { | ||
steps { | ||
withDockerRegistry([credentialsId: 'docker-registry', url: '']) { | ||
sh "docker push openstax/tutor-js:dev" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters