Skip to content

Commit

Permalink
Removing creationDate
Browse files Browse the repository at this point in the history
  • Loading branch information
pdumais committed Sep 18, 2020
1 parent 22b559c commit a522aaf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 20 deletions.
13 changes: 8 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@ failscript()
# Artifact to be released
FILE=net.nuagenetworks.bambou.dll

PWD=`pwd`
alias DOCKER="docker run -e HTTPS_PROXY=$HTTPS_PROXY -e HTTP_PROXY=$HTTP_PROXY -v \"$PWD\":/build -w=/build mono:6.8"

# Build
nuget restore csharp-bambou.sln
sed -i "s/^.*AssemblyFileVersion.*$/[assembly: AssemblyFileVersion(\"$TAG\")]/g" csharp-bambou/Properties/AssemblyInfo.cs
xbuild /p:Configuration="Release" csharp-bambou.sln
DOCKER nuget restore csharp-bambou.sln
DOCKER sed -i "s/^.*AssemblyFileVersion.*$/[assembly: AssemblyFileVersion(\"$TAG\")]/g" csharp-bambou/Properties/AssemblyInfo.cs
DOCKER xbuild /p:Configuration="Release" csharp-bambou.sln

#Create release on github
RESPONSE=$(curl -H "Authorization: token $GITHUBTOKEN" -X POST -f -d '{"tag_name": "'$TAG'","target_commitish": "master", "name": "Bambou .NET '$TAG'","body": "Bambou library for .NET"}' https://api.github.com/repos/nuagenetworks/csharp-bambou/releases)
Expand All @@ -38,8 +41,8 @@ UPLOAD_RESPONSE=$(curl -H "Authorization: token $GITHUBTOKEN" -X POST -f -H "Con

# Build nuget package
sed -i "s/VERSION_VAR/$TAG/g" package.nuspec
nuget pack package.nuspec
DOCKER nuget pack package.nuspec

# Push to nuget
nuget push net.nuagenetworks.bambou.dll.$TAG.nupkg $NUGETTOKEN -Source https://www.nuget.org/api/v2/package
DOCKER nuget push net.nuagenetworks.bambou.dll.$TAG.nupkg $NUGETTOKEN -Source https://www.nuget.org/api/v2/package

15 changes: 0 additions & 15 deletions csharp-bambou/RestObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,6 @@ namespace net.nuagenetworks.bambou
{
public abstract class RestObject
{
[JsonProperty("creationDate")]
protected String creationDate;

[JsonProperty("lastUpdatedDate")]
protected String lastUpdatedDate;

[JsonProperty("owner")]
protected String owner;

[JsonProperty("parentId")]
protected String parentId;

Expand All @@ -59,15 +50,9 @@ public abstract class RestObject
[JsonProperty("id")]
private String id;

[JsonIgnore]
public string NUCreationDate { get { return creationDate;} set { creationDate = value;} }
[JsonIgnore]
public string NUId { get { return id;} set { id = value;} }
[JsonIgnore]
public string NULastUpdatedDate { get { return lastUpdatedDate;} set { lastUpdatedDate = value;} }
[JsonIgnore]
public string NUOwner { get { return owner;} set { owner = value;} }
[JsonIgnore]
public string NUParentId { get { return parentId;} set { parentId = value; } }

public Type NUParentType
Expand Down

0 comments on commit a522aaf

Please sign in to comment.