diff --git a/eng/pipelines/templates/jobs/archetype-sdk-tests.yml b/eng/pipelines/templates/jobs/archetype-sdk-tests.yml index cbca4cef991fd..84f9aec2b641d 100644 --- a/eng/pipelines/templates/jobs/archetype-sdk-tests.yml +++ b/eng/pipelines/templates/jobs/archetype-sdk-tests.yml @@ -35,6 +35,12 @@ parameters: JavaTestVersion: '1.11' DisplayName: 'Windows - Java 11' AZURE_TEST_HTTP_CLIENTS: okhttp + Linux From Source - Java 11: + OSVmImage: 'ubuntu-18.04' + JavaTestVersion: '1.11' + RunTitle: 'From Source: Linux on Java 1.11' + AZURE_TEST_HTTP_CLIENTS: netty + TestFromSource: true PreRunSteps: [] PostRunSteps: [] TestName: LiveTest @@ -103,16 +109,36 @@ jobs: parameters: Artifacts: ${{parameters.Artifacts}} AdditionalModules: ${{parameters.AdditionalModules}} + + - task: UsePythonVersion@0 + displayName: 'Use Python 3.6' + inputs: + versionSpec: '3.6' + condition: and(succeeded(), eq(variables['TestFromSource'],'true')) + + - task: PythonScript@0 + displayName: 'Set versions for source build' + inputs: + scriptPath: 'eng/versioning/set_versions.py' + arguments: '--build-type client --pst' + condition: and(succeeded(), eq(variables['TestFromSource'],'true')) + + - task: PythonScript@0 + displayName: 'Update versions for source build' + inputs: + scriptPath: 'eng/versioning/update_versions.py' + arguments: '--update-type library --build-type client --sr' + condition: and(succeeded(), eq(variables['ShouldRunSourceTests'],'true')) - task: Maven@3 - displayName: 'Build and Install, JDK Version: $(JavaBuildVersion)' + displayName: 'Build and Install, JDK Version: $(JavaTestVersion)' inputs: mavenPomFile: pom.xml goals: 'install' - options: '$(DefaultOptions) -DskipTests -Dgpg.skip -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Dspotbugs.skip=true -Drevapi.skip=true -pl $(ProjectList) -am' + options: '$(DefaultOptions) -T 1C -DskipTests -Dgpg.skip -Dmaven.javadoc.skip=true -Dcheckstyle.skip=true -Dspotbugs.skip=true -Drevapi.skip=true -pl $(ProjectList) -am' mavenOptions: '$(MemoryOptions) $(LoggingOptions)' javaHomeOption: 'JDKVersion' - jdkVersionOption: $(JavaBuildVersion) + jdkVersionOption: $(JavaTestVersion) jdkArchitectureOption: 'x64' publishJUnitResults: false