diff --git a/Jenkinsfile b/Jenkinsfile index 0a5f73bb61823ed177c3685b8dbd252a54d8f864..eaef6c3d17d22ffa1606a30f95aa517496c5f06a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -585,7 +585,7 @@ String generateCypressConfig(String stage, String bezeichner, String testFolder) String getKeycloakUuid(realm, userName) { def shScript = """curl -H 'Content-Type: application/json' \ -H 'Authorization: bearer ${getKeycloakAccessToken()}' \ - 'https://sso.dev.ozg-sh.de/auth/admin/realms/${realm}/users' + 'https://sso.dev.ozg-sh.de/admin/realms/${realm}/users' """ def users = readJSON text: sh(script: shScript, returnStdout: true) @@ -599,7 +599,7 @@ String getKeycloakUuid(realm, userName) { String getKeycloakAccessToken() { withCredentials([usernamePassword(credentialsId: 'keycloak-login', usernameVariable: 'USER', passwordVariable: 'PASSWORD')]) { - def token = readJSON text: sh (script: 'curl -d "client_id=admin-cli" -d "username=$USER" -d "password=$PASSWORD" -d "grant_type=password" "https://sso.dev.ozg-sh.de/auth/realms/master/protocol/openid-connect/token"', returnStdout: true) + def token = readJSON text: sh (script: 'curl -d "client_id=admin-cli" -d "username=$USER" -d "password=$PASSWORD" -d "grant_type=password" "https://sso.dev.ozg-sh.de/realms/master/protocol/openid-connect/token"', returnStdout: true) return token.access_token } @@ -633,4 +633,4 @@ Void initHelmRepo() { sh 'helm repo add ozg-base-apps-snapshot https://nexus.ozg-sh.de/repository/ozg-base-apps-snapshot --username ${USER} --password ${PASSWORD}' sh 'helm repo add ozg-base-apps https://nexus.ozg-sh.de/repository/ozg-base-apps --username ${USER} --password ${PASSWORD}' } -} \ No newline at end of file +}