Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scripts needed to build and sign PSSA via MS VSTS so it can be published in the gallery #983

Merged

Conversation

JamesWTruher
Copy link
Contributor

PR Summary

In order to meet the release gates Microsoft has with regard to software publishing, the module must be built in a specific way and signed in a specific manner. This PR provides all the scripts needed to meet those gates and automate the release build for publishing.

This code does not affect script analyzer in any way other than to provide an alternative build mechanism.

PR Checklist

Note: Tick the boxes below that apply to this pull request by putting an x between the square brackets. Please mark anything not applicable to this PR NA.

  • PR has a meaningful title
    • Use the present tense and imperative mood when describing your changes
  • Summarized changes
  • User facing documentation needed
  • Change is not breaking
  • Make sure you've added a new test if existing tests do not effectively test the code changed
  • This PR is ready to merge and is not work in progress
    • If the PR is work in progress, please add the prefix WIP: to the beginning of the title and remove the prefix when the PR is ready

@bergmeister
Copy link
Collaborator

bergmeister commented May 5, 2018

Some ps1 and psm1 files are missing the copyright header and some commented out lines are left in there

@bergmeister bergmeister added this to the 1.17 milestone May 5, 2018
@@ -0,0 +1,34 @@
# escape=`
#0.3.6 (no powershell 6)
# FROM microsoft/windowsservercore
Copy link
Member

Choose a reason for hiding this comment

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

nit: this line can be removed

"Windows": {
"Name": "win7-x64",
"RepoDestinationPath": "C:\\PSScriptAnalyzer",
"BuildCommand": "C:\\containerFiles\\buildPSSA.ps1",
Copy link
Member

Choose a reason for hiding this comment

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

non-blocking:
_DockerVolume_ is supposed to be passed as a parameter for where you are supposed to copy the results to.

This will become more important when we migrate to a new build system and the path is not the same

Copy link
Member

@TravisEz13 TravisEz13 left a comment

Choose a reason for hiding this comment

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

Nothing blocking, but two minor issue. One should, at least be tracked

@bergmeister
Copy link
Collaborator

My comment is not blocking as well. I do not think it makes sense for me to review this PR in this special case. Whatever works fine for you guys is OK.

@JamesWTruher JamesWTruher force-pushed the jameswtruher/release01 branch from deab984 to 82ebc03 Compare May 8, 2018 21:14
…ere based on _DockerVolume_"

This reverts commit 82ebc03.
@JamesWTruher
Copy link
Contributor Author

we build now and create appropriately signed binaries - I opened issue #993 to track when we move to new build/signing infrastructure

@JamesWTruher JamesWTruher merged commit 1479ed6 into PowerShell:development May 8, 2018
# escape=`
#0.3.6 (no powershell 6)
# FROM microsoft/windowsservercore
FROM microsoft/dotnet-framework:4.7.1
Copy link
Collaborator

Choose a reason for hiding this comment

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

@TravisEz13 @JamesWTruher Could building with .net 4.7.1 cause issues for customers that do not have this relatively new runtime installed?

Copy link
Member

Choose a reason for hiding this comment

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

For Full DotNet, it is supposed to be compatible between major versions unless the product uses features that are specific to the newer version. I've worked on other products that did exactly what this is doing but were just very careful not to use newer features.

@JamesWTruher JamesWTruher deleted the jameswtruher/release01 branch August 31, 2022 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants