Skip to content

Conversation

@gathogojr
Copy link
Contributor

Migrate build pipeline to 1ES

@gathogojr gathogojr force-pushed the maintenance/onboard-1es-pipeline branch 8 times, most recently from c54145a to 0747bde Compare August 19, 2024 13:03
@gathogojr gathogojr force-pushed the maintenance/onboard-1es-pipeline branch from 0747bde to fec0c30 Compare August 19, 2024 13:15
Comment on lines +95 to +97
displayName: Use .NET 3.x
inputs:
packageType: 'sdk'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which framework does modelbuilder target? shouldn't it target .net 8.0? If so,,,, the test projects too should be updated and this should be updated to .net 8.0

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I decided to migrate the pipelines to 1ES first before merging #41. The main branch currently targets .NET 6.0. I plan to either make changes to #41 to update the build pipeline templates to target .NET 8.0 or create a separate pull request for that purpose after merging #41

versionSpec: '>=5.2.0'

- task: UseDotNet@2
displayName: Use .NET 6.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be .net 8.0?

Copy link
Contributor Author

@gathogojr gathogojr Aug 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ElizabethOkerio I'll update that after I merge #41. This pull request is targeting current main that was targeting .NET 6.0

checkLatest: true

- task: UseDotNet@2
displayName: Use .NET 6.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here? net.8.0?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +86 to +89
displayName: Use .NET 3.x
inputs:
packageType: 'sdk'
version: '3.x'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release

variables:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you're missing some variables from the other pipelines...I'm not sure whether it matters though :

variables:

  • name: NugetSecurityAnalysisWarningLevel
    value: none
  • name: runCodesignValidationInjection
    value: false

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought of adding them but I wasn't sure whether they're strictly necessary especially because they appear to be assigned default values. I'll evaluate whether they're necessary when updating the template to use .NET 8.0

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, those variables are not applied anywhere even in the other pipelines.

@gathogojr gathogojr merged commit 31c01f0 into OData:main Aug 19, 2024
@gathogojr gathogojr deleted the maintenance/onboard-1es-pipeline branch August 19, 2024 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants