This file contains hidden or 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
db.users.find().forEach( | |
function(user) { | |
if (user.email) { | |
var newEmail = user.email + '.anon' | |
print(user.email + " => " + newEmail); | |
db.users.updateOne( | |
{ _id: user._id }, | |
{ $set:{ 'email': newEmail } }, | |
{ upsert: false }); | |
} |
This file contains hidden or 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
db.users.find().forEach( | |
function(user) { | |
if (user.email && user.email.endsWith(".anon")) { | |
var newEmail = user.email.slice(0, user.email.length - 5) | |
print(user.email + " => " + newEmail); | |
db.users.updateOne( | |
{ _id: user._id }, | |
{ $set:{ 'email': newEmail } }, | |
{ upsert: false }); | |
} |
This file contains hidden or 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
# Gateway HTTP server | |
http: | |
port: 38082 | |
management: | |
type: http | |
http: | |
url: http://localhost:28292/ | |
keepAlive: true | |
idleTimeout: 30000 |
This file contains hidden or 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
http: | |
port: 28082 | |
management: | |
type: mongodb | |
mongodb: | |
dbname: ${ds.mongodb.dbname} | |
host: ${ds.mongodb.host} | |
port: ${ds.mongodb.port} |
This file contains hidden or 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
# CDDL HEADER START | |
# | |
# The contents of this file are subject to the terms of the | |
# Common Development and Distribution License, Version 1.0 only | |
# (the "License"). You may not use this file except in compliance | |
# with the License. | |
# | |
# You can obtain a copy of the license at | |
# trunk/opends/resource/legal-notices/OpenDS.LICENSE | |
# or https://OpenDS.dev.java.net/OpenDS.LICENSE. |
This file contains hidden or 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
node("Agent001") { | |
def server | |
def buildInfo | |
stage ('Checkout') { | |
checkout scm | |
} | |
stage ('Artifactory configuration') { | |
server = Artifactory.server "sprint0-artifactory" |
OlderNewer