Skip to content

Commit b2c2135

Browse files
committed
MLE-24531 Bumping PR tests to latest 12 nightly
Also moved docker-compose to the root folder for consistency with other repos.
1 parent 6eb9a5b commit b2c2135

File tree

6 files changed

+10
-9
lines changed

6 files changed

+10
-9
lines changed

.copyrightconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ startyear: 2015
1111
# - Dotfiles already skipped automatically
1212
# Enable by removing the leading '# ' from the next line and editing values.
1313
# filesexcluded: third_party/*, docs/generated/*.md, assets/*.png, scripts/temp_*.py, vendor/lib.js
14-
filesexcluded: .github/*, README.md, Jenkinsfile, package.json, package-lock.json, test-app/*, *.md
14+
filesexcluded: .github/*, README.md, Jenkinsfile, package.json, package-lock.json, test-app/*, *.md, docker-compose.yaml
File renamed without changes.

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ tmp
77
.settings
88
.vscode
99
.DS_Store
10+
11+
docker
1012
test-app/build
1113
test-app/.gradle
1214
test-app/gradle-local.properties
1315
test-app/docker
1416
test-app/containerLogs
15-
1617
test-complete-app/build
1718
test-complete-app/.gradle

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ instance available for testing.
2121

2222
If you are able to use Docker, run the following:
2323

24-
cd test-app
2524
docker-compose up -d --build
2625

2726
This will create a container with the MarkLogic service. The MarkLogic service will take a minute or two to initialize.
@@ -31,6 +30,7 @@ username and password are in the docker-compose.yaml file in the /test-app direc
3130
Once the container is finished initializing, you need to deploy the test application to the MarkLogic service.
3231
While still in the test-app directory run the following gradle command.
3332

33+
cd test-app
3434
./gradlew -i mlDeploy
3535

3636
Once the deploy has completed successfully, use "cd .." to return to the root directory of the project.

Jenkinsfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def runDockerCompose(String markLogicDockerImage) {
2929
sudo /usr/local/sbin/mladmin remove
3030
docker-compose down -v || true
3131
sudo /usr/local/sbin/mladmin cleandata
32-
cd node-client-api/test-app
32+
cd node-client-api
3333
MARKLOGIC_LOGS_VOLUME=/tmp MARKLOGIC_IMAGE=''' + markLogicDockerImage + ''' docker-compose up -d --build
3434
sleep 60s;
3535
'''
@@ -38,7 +38,7 @@ def runDockerCompose(String markLogicDockerImage) {
3838
def teardownAfterTests() {
3939
updateWorkspacePermissions()
4040
sh label: 'teardown-docker', script: '''#!/bin/bash
41-
cd node-client-api/test-app
41+
cd node-client-api
4242
docker-compose down -v || true
4343
'''
4444
cleanupDocker()
@@ -89,7 +89,7 @@ def runE2ETests() {
8989
../node_modules/.bin/mocha -R xunit --timeout 60000 -R xunit "nodejs-ds-transactions.js" --reporter mocha-junit-reporter --reporter-options mochaFile=$WORKSPACE/ds-transactions-results.js.xml || true
9090
../node_modules/.bin/mocha -R xunit --timeout 60000 -R xunit "nodejs-ds-dynamic.js" --reporter mocha-junit-reporter --reporter-options mochaFile=$WORKSPACE/ds-dynamic-results.xml || true
9191
'''
92-
junit '**/*.xml'
92+
junit '**/*.xml'
9393
}
9494

9595
pipeline {
@@ -118,13 +118,13 @@ pipeline {
118118

119119
stages {
120120

121-
stage('runtests-11.3.2') {
121+
stage('pull-request-tests') {
122122
agent { label 'nodeclientpool' }
123123
steps {
124124
runAuditReport()
125-
runDockerCompose('progressofficial/marklogic-db:latest-11.3')
125+
runDockerCompose('ml-docker-db-dev-tierpoint.bed-artifactory.bedford.progress.com/marklogic/marklogic-server-ubi:latest-12')
126126
runTests()
127-
runE2ETests()
127+
runE2ETests()
128128
}
129129
post {
130130
always {
File renamed without changes.

0 commit comments

Comments
 (0)