Compare commits
32 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 98db16fc7e | |||
| 0f24014de0 | |||
| bd2d025164 | |||
|
|
cc4cde76cb | ||
|
|
b6c0628682 | ||
|
|
4b9d2e6e05 | ||
|
|
e22878ccdb | ||
|
|
0142c17e2a | ||
|
|
a811e8eaf7 | ||
| 62145b9569 | |||
| 58c84bc13d | |||
|
|
dd44069132 | ||
|
|
c96d751e2e | ||
|
|
a8e55457a5 | ||
|
|
f0caa9e1db | ||
|
|
12923be93e | ||
|
|
046d681b25 | ||
|
|
34d0d86bd5 | ||
| 6e8e8db12e | |||
| f5ec4204fe | |||
| 2d5fb1a48a | |||
| c217195605 | |||
| 7aeff96eed | |||
| 96906d57cf | |||
|
|
1810b0005a | ||
| 53f79ce16a | |||
| e95e29a96a | |||
|
|
ea976842cd | ||
| f1342b118f | |||
| aa59a17a7c | |||
|
|
fb2b34d7ff | ||
|
|
a00353f464 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -362,3 +362,4 @@ MigrationBackup/
|
|||||||
# Fody - auto-generated XML schema
|
# Fody - auto-generated XML schema
|
||||||
FodyWeavers.xsd
|
FodyWeavers.xsd
|
||||||
|
|
||||||
|
upstreamProjects/
|
||||||
@@ -1913,7 +1913,7 @@ namespace FarmMapsAPI.Carbon
|
|||||||
var monthClimateList = new List<ClimateVariable>();
|
var monthClimateList = new List<ClimateVariable>();
|
||||||
foreach (var month in gisSoilSet.AllMonths)
|
foreach (var month in gisSoilSet.AllMonths)
|
||||||
{
|
{
|
||||||
var climateYear = loopYear > 2020 || loopYear < 2011 ? 2012 : loopYear;
|
var climateYear = loopYear > 2050 || loopYear < 2011 ? 2012 : loopYear;
|
||||||
var monthData = climate.Single(x => x.Key.Item1 == farmZone && x.Key.Item2 == month && x.Key.Item3 == climateYear).Value;
|
var monthData = climate.Single(x => x.Key.Item1 == farmZone && x.Key.Item2 == month && x.Key.Item3 == climateYear).Value;
|
||||||
var newMonthData = new ClimateVariable(monthData.Temperature, monthData.Precipitation, monthData.Evapotranspiration * 1.25);
|
var newMonthData = new ClimateVariable(monthData.Temperature, monthData.Precipitation, monthData.Evapotranspiration * 1.25);
|
||||||
monthClimateList.Add(newMonthData);
|
monthClimateList.Add(newMonthData);
|
||||||
|
|||||||
@@ -1,21 +1,21 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
<TargetFramework>net6</TargetFramework>
|
||||||
<AssemblyName>CarbonLib</AssemblyName>
|
<AssemblyName>CarbonLib</AssemblyName>
|
||||||
<PackageId>CarbonLib</PackageId>
|
<PackageId>CarbonLib</PackageId>
|
||||||
<RuntimeIdentifiers>win10-x64;ubuntu.16.04-x64</RuntimeIdentifiers>
|
<RuntimeIdentifiers>win10-x64;ubuntu.16.04-x64</RuntimeIdentifiers>
|
||||||
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
|
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
|
||||||
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
|
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
|
||||||
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
|
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
|
||||||
<Version>1.2.0</Version>
|
<Version>2.2.0</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Base.Core.Common" Version="1.2.2.10" />
|
<PackageReference Include="Base.Core.Common" Version="2.3.0" />
|
||||||
<PackageReference Include="Base.Core.Common.Geometry" Version="1.4.0" />
|
<PackageReference Include="Base.Core.Common.Geometry" Version="2.3.0" />
|
||||||
<PackageReference Include="NetTopologySuite" Version="2.0.0" />
|
<PackageReference Include="NetTopologySuite" Version="2.5.0" />
|
||||||
<PackageReference Include="NetTopologySuite.IO.GeoJSON" Version="2.0.4" />
|
<PackageReference Include="NetTopologySuite.IO.GeoJSON" Version="3.0.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
48
Jenkinsfile
vendored
48
Jenkinsfile
vendored
@@ -1,42 +1,30 @@
|
|||||||
|
@Library('farmmaps-shared-library') _
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any;
|
||||||
environment {
|
options {
|
||||||
APP_VERSION_PREFIX=sh(script: ' cat *.csproj| xmlstarlet sel -t -m "/Project/PropertyGroup/Version" -v . -n|awk -v def="1.0.0" "{print} END { if(NR==0) {print def} }"', returnStdout: true).trim()
|
copyArtifactPermission projectNames: env.allProjectsArtifactPermission;
|
||||||
APP_NAME=sh(script: ' cat *.csproj| xmlstarlet sel -t -m "/Project/PropertyGroup/AssemblyName" -v . -n|awk -v def="App" "{print tolower(\\$0)} END { if(NR==0) {print def} }"', returnStdout: true).trim()
|
disableConcurrentBuilds abortPrevious: true;
|
||||||
APP_VERSION="${APP_VERSION_PREFIX}"
|
}
|
||||||
|
triggers {
|
||||||
|
upstream(
|
||||||
|
upstreamProjects: '/FarmMaps/Base.Core.Common.Geometry/master',
|
||||||
|
threshold: hudson.model.Result.SUCCESS
|
||||||
|
)
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Dotnet Restore') {
|
stage('BaseBuildAll') {
|
||||||
steps {
|
steps {
|
||||||
sh '''dotnet restore CarbonLib.csproj'''
|
stepBaseBuildAll();
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Dotnet Build') {
|
|
||||||
steps {
|
|
||||||
sh '''dotnet build CarbonLib.csproj'''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Dotnet Package') {
|
|
||||||
steps {
|
|
||||||
sh '''rm -rf nuget
|
|
||||||
dotnet pack -c release -o nuget -p:PackageVersion=${APP_VERSION} CarbonLib.csproj'''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Dotnet Publish') {
|
|
||||||
steps {
|
|
||||||
sh '''dotnet nuget push nuget/*.nupkg -k 0c3e3afc-935b-3db1-b023-e0d4799e674d -s https://repository.akkerweb.nl/repository/nuget-hosted/'''
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
|
success {
|
||||||
|
postSuccess();
|
||||||
|
}
|
||||||
always {
|
always {
|
||||||
emailext (
|
postAlways();
|
||||||
body: '${DEFAULT_CONTENT}',
|
|
||||||
mimeType: 'text/html',
|
|
||||||
replyTo: '${DEFAULT_REPLYTO}',
|
|
||||||
subject: '${DEFAULT_SUBJECT}',
|
|
||||||
to: emailextrecipients([[$class: 'CulpritsRecipientProvider'], [$class: 'RequesterRecipientProvider']])
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,42 +1,30 @@
|
|||||||
|
@Library('farmmaps-shared-library') _
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any;
|
||||||
environment {
|
options {
|
||||||
APP_VERSION_PREFIX=sh(script: ' cat *.csproj| xmlstarlet sel -t -m "/Project/PropertyGroup/Version" -v . -n|awk -v def="1.0.0" "{print} END { if(NR==0) {print def} }"', returnStdout: true).trim()
|
copyArtifactPermission projectNames: env.allProjectsArtifactPermission;
|
||||||
APP_NAME=sh(script: ' cat *.csproj| xmlstarlet sel -t -m "/Project/PropertyGroup/AssemblyName" -v . -n|awk -v def="App" "{print tolower(\\$0)} END { if(NR==0) {print def} }"', returnStdout: true).trim()
|
disableConcurrentBuilds abortPrevious: true;
|
||||||
APP_VERSION="${APP_VERSION_PREFIX + '-prerelease.' + env.BUILD_NUMBER}"
|
}
|
||||||
|
triggers {
|
||||||
|
upstream(
|
||||||
|
upstreamProjects: '/FarmMaps.Develop/Base.Core.Common.Geometry/develop',
|
||||||
|
threshold: hudson.model.Result.SUCCESS
|
||||||
|
)
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Dotnet Restore') {
|
stage('BaseBuildAll') {
|
||||||
steps {
|
steps {
|
||||||
sh '''dotnet restore CarbonLib.csproj'''
|
stepBaseBuildAll();
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Dotnet Build'){
|
|
||||||
steps {
|
|
||||||
sh '''dotnet build CarbonLib.csproj'''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Dotnet Package') {
|
|
||||||
steps {
|
|
||||||
sh '''rm -rf nuget
|
|
||||||
dotnet pack -c debug -o nuget -p:PackageVersion=${APP_VERSION} CarbonLib.csproj'''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Dotnet Publish') {
|
|
||||||
steps {
|
|
||||||
sh '''dotnet nuget push nuget/*.nupkg -k 0c3e3afc-935b-3db1-b023-e0d4799e674d -s https://repository.akkerweb.nl/repository/nuget-hosted/'''
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
|
success {
|
||||||
|
postSuccess();
|
||||||
|
}
|
||||||
always {
|
always {
|
||||||
emailext (
|
postAlways();
|
||||||
body: '${DEFAULT_CONTENT}',
|
|
||||||
mimeType: 'text/html',
|
|
||||||
replyTo: '${DEFAULT_REPLYTO}',
|
|
||||||
subject: '${DEFAULT_SUBJECT}',
|
|
||||||
to: emailextrecipients([[$class: 'CulpritsRecipientProvider'], [$class: 'RequesterRecipientProvider']])
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
5040
config/KNMI_data.csv
5040
config/KNMI_data.csv
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user