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
node("Agent001") { | |
def server | |
def buildInfo | |
stage ('Checkout') { | |
checkout scm | |
} | |
stage ('Artifactory configuration') { | |
server = Artifactory.server "sprint0-artifactory" |
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
# 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 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 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 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 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 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
import sys | |
import requests | |
import getopt | |
baseURL = "" | |
headers = { | |
"Content-Type": "application/json", | |
"Authorization": "", | |
} |
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
[template] | |
prefix = "/graviteeio/apim/webui" | |
src = "constants.json.tmpl" | |
dest = "/var/www/html/constants.json" | |
keys = [ | |
"/baseUrl", | |
"/company/name", | |
"/portalTitle", | |
"/managementTitle", | |
"/devMode", |
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
{ | |
"baseURL": "{{getv "/baseUrl" "http://localhost:8083/management/"}}", | |
"company": { | |
"name": "{{getv "/company/name" "Gravitee.io"}}" | |
}, | |
"portalTitle": "{{getv "/portalTitle" "Gravitee.io Portal"}}", | |
"managementTitle": "{{getv "/managementTitle" "Gravitee.io Management"}}", | |
"devMode": {{getv "/devMode" "false"}}, |
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
""" | |
mode debug des logs : $.proxy.loggingMode=CLIENT_PROXY | |
health present : $.services.health-check | |
presence de policy : $.paths.*[*].transform-headers | |
presence du failover : $.proxy.failover | |
""" | |
import sys | |
import requests | |
from jsonpath_rw import parse | |
import getopt |
NewerOlder