Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
Use --local=. as first argument for all config
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Dec 22, 2023
1 parent 176059d commit 70eb5f3
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/moderne/connect/commands/Jenkins.java
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ private String createConfigTenantCommand() {
if (downloadCLI || !StringUtils.isBlank(downloadCLIUrl)) {
command += isWindowsPlatform ? ".\\" : "./";
}
command += String.format("%s config moderne edit --token=%s %s ",
command += String.format("%s config moderne edit --local=. --token=%s %s ",
isWindowsPlatform ? "mod.exe" : "mod",
isWindowsPlatform ? "$env:MODERNE_TOKEN" : "${MODERNE_TOKEN}",
tenant.moderneUrl
Expand All @@ -665,7 +665,7 @@ private String createConfigMavenSettingsCommand() {
command += isWindowsPlatform ? ".\\" : "./";
}

return command + String.format("%s config build maven settings edit %s ",
return command + String.format("%s config build maven settings edit --local=. %s ",
isWindowsPlatform ? "mod.exe" : "mod",
isWindowsPlatform ? "$env:MODERNE_MVN_SETTINGS_XML" : "${MODERNE_MVN_SETTINGS_XML}");
}
Expand Down
4 changes: 2 additions & 2 deletions src/test/jenkins/config-freestyle-gradle-no-cleanup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@
<configuredLocalRules/>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>./mod config moderne edit --token=${MODERNE_TOKEN} https://app.moderne.io </command>
<command>./mod config moderne edit --local=. --token=${MODERNE_TOKEN} https://app.moderne.io </command>
<configuredLocalRules/>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>./mod config artifacts artifactory edit --local=. --user=${ARTIFACTS_PUBLISH_CRED_USR} --password=${ARTIFACTS_PUBLISH_CRED_PWD} https://artifactory.moderne.ninja/artifactory/moderne-ingest </command>
<configuredLocalRules/>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>./mod config build maven settings edit ${MODERNE_MVN_SETTINGS_XML} </command>
<command>./mod config build maven settings edit --local=. ${MODERNE_MVN_SETTINGS_XML} </command>
<configuredLocalRules/>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
Expand Down
2 changes: 1 addition & 1 deletion src/test/jenkins/config-freestyle-gradle-validate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<configuredLocalRules/>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>./mod config build maven settings edit ${MODERNE_MVN_SETTINGS_XML} </command>
<command>./mod config build maven settings edit --local=. ${MODERNE_MVN_SETTINGS_XML} </command>
<configuredLocalRules/>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
Expand Down
4 changes: 2 additions & 2 deletions src/test/jenkins/config-freestyle-gradle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@
<configuredLocalRules/>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>./mod config moderne edit --token=${MODERNE_TOKEN} https://app.moderne.io </command>
<command>./mod config moderne edit --local=. --token=${MODERNE_TOKEN} https://app.moderne.io </command>
<configuredLocalRules/>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>./mod config artifacts artifactory edit --local=. --user=${ARTIFACTS_PUBLISH_CRED_USR} --password=${ARTIFACTS_PUBLISH_CRED_PWD} https://artifactory.moderne.ninja/artifactory/moderne-ingest </command>
<configuredLocalRules/>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>./mod config build maven settings edit ${MODERNE_MVN_SETTINGS_XML} </command>
<command>./mod config build maven settings edit --local=. ${MODERNE_MVN_SETTINGS_XML} </command>
<configuredLocalRules/>
</hudson.tasks.Shell>

Expand Down
2 changes: 1 addition & 1 deletion src/test/jenkins/config-freestyle-maven-validate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<configuredLocalRules/>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>./mod config build maven settings edit ${MODERNE_MVN_SETTINGS_XML} </command>
<command>./mod config build maven settings edit --local=. ${MODERNE_MVN_SETTINGS_XML} </command>
<configuredLocalRules/>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
Expand Down
4 changes: 2 additions & 2 deletions src/test/jenkins/config-freestyle-maven.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@
<configuredLocalRules/>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>./mod config moderne edit --token=${MODERNE_TOKEN} https://app.moderne.io </command>
<command>./mod config moderne edit --local=. --token=${MODERNE_TOKEN} https://app.moderne.io </command>
<configuredLocalRules/>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>./mod config artifacts artifactory edit --local=. --user=${ARTIFACTS_PUBLISH_CRED_USR} --password=${ARTIFACTS_PUBLISH_CRED_PWD} https://artifactory.moderne.ninja/artifactory/moderne-ingest </command>
<configuredLocalRules/>
</hudson.tasks.Shell>
<hudson.tasks.Shell>
<command>./mod config build maven settings edit ${MODERNE_MVN_SETTINGS_XML} </command>
<command>./mod config build maven settings edit --local=. ${MODERNE_MVN_SETTINGS_XML} </command>
<configuredLocalRules/>
</hudson.tasks.Shell>

Expand Down

0 comments on commit 70eb5f3

Please sign in to comment.