Skip to content

Commit 47fb051

Browse files
twastvedtGitHub Enterprise
authored andcommitted
Merge pull request #2 from Dynamo/cicd
Add cicd
2 parents 6f39dda + aea6039 commit 47fb051

File tree

6 files changed

+77
-7
lines changed

6 files changed

+77
-7
lines changed

DSPythonNet3/DSPythonNet3.csproj

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@
1010
<TargetFramework>$(DotNet)</TargetFramework>
1111
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
1212
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
13+
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
1314
</PropertyGroup>
1415
<PropertyGroup>
1516
<NoWarn>MSB3539;CS1591;NUnit2005;NUnit2007;CS0618;CS0612;CS0672</NoWarn>
1617
</PropertyGroup>
1718
<ItemGroup>
18-
<PackageReference Include="DynamoVisualProgramming.Core" Version="3.3.0-beta6171" />
19-
<PackageReference Include="DynamoVisualProgramming.DynamoServices" Version="3.3.0-beta6171" />
19+
<PackageReference Include="DynamoVisualProgramming.Core" Version="3.3.0-beta6171" ExcludeAssets="runtime" />
20+
<PackageReference Include="DynamoVisualProgramming.DynamoServices" Version="3.3.0-beta6171" ExcludeAssets="runtime" />
21+
<PackageReference Include="pythonnet" Version="3.1.0-preview-ADSK-*" />
2022
</ItemGroup>
2123
<ItemGroup>
2224
<Reference Include="Python.Deployment">
@@ -27,10 +29,6 @@
2729
<HintPath>..\extern\Python\Python.Included.dll</HintPath>
2830
<Private>True</Private>
2931
</Reference>
30-
<Reference Include="Python.Runtime">
31-
<HintPath>..\extern\Python\Python.Runtime.dll</HintPath>
32-
<Private>True</Private>
33-
</Reference>
3432
</ItemGroup>
3533
<ItemGroup>
3634
<Compile Update="Properties\Resources.Designer.cs">

DynamoPythonNet3.sln

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DSPythonNet3Extension", "Dy
77
EndProject
88
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DSPythonNet3Empty", "DynamoPythonNet3Empty\DSPythonNet3Empty.csproj", "{2AEE36F0-B188-464B-B6E9-54C8C7057460}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DSPythonNet3", "DSPythonNet3\DSPythonNet3.csproj", "{582DA7FA-C36E-43AC-B76A-3A6F563328F9}"
10+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DSPythonNet3", "DSPythonNet3\DSPythonNet3.csproj", "{582DA7FA-C36E-43AC-B76A-3A6F563328F9}"
11+
EndProject
12+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{8C9CB9FD-F6BC-41D4-A587-0558846B4A31}"
13+
ProjectSection(SolutionItems) = preProject
14+
nuget.config = nuget.config
15+
pipeline.yml = pipeline.yml
16+
EndProjectSection
1117
EndProject
1218
Global
1319
GlobalSection(SolutionConfigurationPlatforms) = preSolution

Jenkinsfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env groovy
2+
3+
@Library('PSL@master')
4+
@Library('CILibrary@CBP/stable') _
5+
6+
//env.RELEASE_BRANCHES = "master"
7+
8+
StartPipeline()

extern/Python/Python.Runtime.dll

-465 KB
Binary file not shown.

nuget.config

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<packageSources>
4+
<!-- ignore local nuget settings -->
5+
<clear />
6+
<!--<add key="LocalDev" value="D:\source\Dynamo\tools\NuGet" />-->
7+
<add key="Dynamo Artifactory" value="https://art-bobcat.autodesk.com/artifactory/api/nuget/team-dynamo-nuget" />
8+
<add key="Autodesk Artifactory" value="https://art-bobcat.autodesk.com/artifactory/api/nuget/autodesk-nuget-virtual/" />
9+
</packageSources>
10+
<packageSourceMapping>
11+
<!-- key value for <packageSource> should match key values from <packageSources> element -->
12+
<packageSource key="Dynamo Artifactory">
13+
<package pattern="pythonnet" />
14+
</packageSource>
15+
<packageSource key="Autodesk Artifactory">
16+
<package pattern="*" />
17+
</packageSource>
18+
</packageSourceMapping>
19+
</configuration>

pipeline.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
version: 1.4.0
2+
pipeline_os: windows
3+
#update_changelog_on_release: true
4+
create_github_release: true
5+
create_pr_release_to_master: true
6+
7+
env:
8+
- GITHUB_ACCESS_TOKEN_ID: github_access_token_acsbuildguy
9+
- JENKINS_NODE_WIN: DynamoWinBuild
10+
11+
code_analysis:
12+
sonarqube:
13+
source_encoding: UTF-8
14+
src: .
15+
coverage_reports:
16+
- coverage.info
17+
18+
build:
19+
-
20+
scripts:
21+
- dotnet msbuild DynamoPythonNet3.sln -p:Configuration=Release -restore
22+
23+
deployment:
24+
-
25+
type: sign
26+
files_to_sign:
27+
- package_output/DSPythonNet3/**/DSPythonNet3*.dll
28+
- package_output/DSPythonNet3/**/Python.*.dll
29+
-
30+
type: customized
31+
scripts:
32+
- "pwsh.exe -ExecutionPolicy ByPass -Command Compress-Archive -Path package_output/DSPythonNet3 -DestinationPath DSPythonNet3.zip"
33+
-
34+
type: artifacts
35+
publish_to_jenkins: true
36+
publish_to_artifactory: false
37+
allow_branches: ".*"
38+
outputs:
39+
- DSPythonNet3.zip

0 commit comments

Comments
 (0)