mirror of
https://github.com/gradle/actions.git
synced 2025-11-26 17:09:10 +08:00
Fix setting env vars for plugin repository (#669)
- Removed double underscore from DEVELOCITY_INJECTION_PLUGIN_REPOSITORY_* env vars - Set GRADLE_PLUGIN_REPOSITORY_* env vars
This commit is contained in:
@@ -71,6 +71,10 @@ export class DependencyGraphConfig {
|
||||
return getOptionalInput('dependency-graph-include-configurations')
|
||||
}
|
||||
|
||||
getPluginRepository(): PluginRepositoryConfig {
|
||||
return new PluginRepositoryConfig()
|
||||
}
|
||||
|
||||
static constructJobCorrelator(workflow: string, jobId: string, matrixJson: string): string {
|
||||
const matrixString = this.describeMatrix(matrixJson)
|
||||
const label = matrixString ? `${workflow}-${jobId}-${matrixString}` : `${workflow}-${jobId}`
|
||||
@@ -301,16 +305,8 @@ export class BuildScanConfig {
|
||||
return core.getInput('develocity-ccud-plugin-version')
|
||||
}
|
||||
|
||||
getGradlePluginRepositoryUrl(): string {
|
||||
return core.getInput('gradle-plugin-repository-url')
|
||||
}
|
||||
|
||||
getGradlePluginRepositoryUsername(): string {
|
||||
return core.getInput('gradle-plugin-repository-username')
|
||||
}
|
||||
|
||||
getGradlePluginRepositoryPassword(): string {
|
||||
return core.getInput('gradle-plugin-repository-password')
|
||||
getPluginRepository(): PluginRepositoryConfig {
|
||||
return new PluginRepositoryConfig()
|
||||
}
|
||||
|
||||
private verifyTermsOfUseAgreement(): boolean {
|
||||
@@ -328,6 +324,20 @@ export class BuildScanConfig {
|
||||
}
|
||||
}
|
||||
|
||||
export class PluginRepositoryConfig {
|
||||
getUrl(): string | undefined {
|
||||
return getOptionalInput('gradle-plugin-repository-url')
|
||||
}
|
||||
|
||||
getUsername(): string | undefined {
|
||||
return getOptionalInput('gradle-plugin-repository-username')
|
||||
}
|
||||
|
||||
getPassword(): string | undefined {
|
||||
return getOptionalInput('gradle-plugin-repository-password')
|
||||
}
|
||||
}
|
||||
|
||||
export class GradleExecutionConfig {
|
||||
getGradleVersion(): string {
|
||||
return core.getInput('gradle-version')
|
||||
|
||||
Reference in New Issue
Block a user