Skip to content

Commit

Permalink
Try to enable the ROS tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nirinchev committed Dec 27, 2018
1 parent 52b751e commit a107aa8
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ def NetCoreTest(String nodeName, String platform, String stashSuffix) {
if (isUnix()) {
if (nodeName == 'docker') {
def test_runner_image = buildDockerEnv("ci/realm-dotnet:netcore_tests");
withRos("3.11.0") { ros ->
withROS_temp("3.11.0") { ros ->
test_runner_image.inside("--link ${ros.id}:ros") {
sh """
cd ${pwd()}/${binaryFolder}
Expand Down Expand Up @@ -787,6 +787,18 @@ def reportTests(String file) {
junit file
}

def withROS_temp(String version, block = { it }) {
withCredentials([string(credentialsId: 'realm-sync-feature-token-enterprise', variable: 'ENTERPRISE_FEATURE_TOKEN')]) {
docker.withRegistry("https://${env.DOCKER_REGISTRY}", "ecr:eu-west-1:aws-ci-user") {
// run image, get IP
docker.image("${env.DOCKER_REGISTRY}/realm-object-server:${version}")
.withRun("--expose 9080 -P -e ROS_TOS_EMAIL_ADDRESS=testing@realm.io -e SYNC_WORKER_FEATURE_TOKEN=${env.ENTERPRISE_FEATURE_TOKEN} --name ros") { obj ->
block(obj)
}
}
}
}

// Required due to JENKINS-27421
@NonCPS
List<List<?>> mapToList(Map map) {
Expand Down

0 comments on commit a107aa8

Please sign in to comment.