Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for EnvVariableInjection (0.98 sec)

  1. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/EnvVariableInjection.groovy

    abstract class EnvVariableInjection extends BuildInputInjection {
        static EnvVariableInjection environmentVariable(String key, String value) {
            return environmentVariables((key): Objects.requireNonNull(value))
        }
    
        static EnvVariableInjection environmentVariables(Map<String, String> variables) {
            return new EnvVariableInjection() {
                @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/AbstractUndeclaredBuildInputsIntegrationTest.groovy

            when:
            EnvVariableInjection.environmentVariable("CI", value).setup(this)
            configurationCacheRunLenient "thing"
    
            then:
            configurationCache.assertStateLoaded()
            problems.assertResultHasProblems(result)
            outputDoesNotContain("apply =")
            outputContains("task = $value")
    
            when:
            EnvVariableInjection.environmentVariable("CI", newValue).setup(this)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/UndeclaredBuildInputsIntegrationTest.groovy

            '''
    
            when:
            EnvVariableInjection.checkEnvironmentVariableUnset("CI1")
            configurationCacheRun()
    
            then:
            problems.assertResultHasProblems(result) {
                withInput("Build file 'build.gradle': environment variable 'CI1'")
            }
            outputContains("CI1 = null")
    
            when:
            EnvVariableInjection.environmentVariable("CI1", "defined").setup(this)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 36K bytes
    - Viewed (0)
Back to top