Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
Merged in feature/MTM-40946/sdk-cs_github (pull request #29)
Browse files Browse the repository at this point in the history
[MTM-40946]: Migrate cumulocity-sdk-cs to GitHub
  • Loading branch information
c8y-kh4mell committed Sep 7, 2021
2 parents 65bb8fb + 8a31f1f commit 78fb7d5
Show file tree
Hide file tree
Showing 11 changed files with 92 additions and 187 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@
/REST-SDK/ExampleWebApi/obj
.vscode/

/.idea/
File renamed without changes.
83 changes: 83 additions & 0 deletions .jenkins/github/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
pipeline {
agent {
kubernetes {
inheritFrom 'mono3'
defaultContainer 'mono3'
}
}
triggers{
githubPush()
}
options{
buildDiscarder(logRotator(numToKeepStr: '3'))
timeout(time: 1, unit: 'HOURS')
disableConcurrentBuilds()
}
parameters {
booleanParam(defaultValue: true, description: '', name: 'DIAGNOSTIC_FLAG')
booleanParam(defaultValue: false, description: '', name: 'CAN_RELEASE')
string(defaultValue: 'feature/MTM-37209/test-build-branch', description: 'specific build/release branch name', name: 'release_branch_name', trim: true)
}
environment {
DIAGNOSTIC_FLAG_ENV = "${params.DIAGNOSTIC_FLAG ? '-verbosity=diagnostic' : ''}"
}
stages {
stage('Checkout') {
steps {
container('mono3') {
checkout([
$class: 'GitSCM', branches: [[name: params.release_branch_name]],
extensions: [[$class: 'CleanCheckout']],
userRemoteConfigs: [[url: '[email protected]:SoftwareAG/cumulocity-sdk-cs.git',credentialsId:'jenkins-master']] ])
}
}
}
stage('Build') {
when {
anyOf{
branch 'master'
branch 'develop'
branch 'feature/**'
}
}
steps {
container('mono3') {
script {
echo "diagnostic flag: ${params.DIAGNOSTIC_FLAG}"
sh 'cd MQTT-SDK && chmod +x ./build.sh && ./build.sh -target=Test ${DIAGNOSTIC_FLAG_ENV} && cd .. '
}
}
}
}
stage('Release') {
when {
anyOf{
branch 'develop'
branch "release/*"
}
}
steps {
container('mono3') {
script {
echo "CAN_RELEASE: ${params.CAN_RELEASE}"
echo "diagnostic flag: ${params.DIAGNOSTIC_FLAG}"
if ("${params.CAN_RELEASE}" == "true") {
sshagent (['jenkins-master']) {
sh 'cd MQTT-SDK && chmod +x ./build.sh && ./build.sh --script build-release.cake ${DIAGNOSTIC_FLAG_ENV}'
}
}
}
}
}
}
}
post {
failure {
script {
if (env.BRANCH_NAME ==~ '(develop|release/.*)') {
// chat 'AAAAvnc5o90'
}
}
}
}
}
2 changes: 1 addition & 1 deletion MQTT-SDK/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ openSUSE | 42.1 | x64 |

```
#!bash
git clone https://[email protected]/m2m/cumulocity-sdk-cs.git
git clone [email protected]:SoftwareAG/cumulocity-sdk-cs.git
```

* Customize the *build.cake* to your needs.
Expand Down
4 changes: 2 additions & 2 deletions MQTT-SDK/src/Cumulocity.SDK.MQTT/Cumulocity.SDK.MQTT.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<Product>Cumulocity</Product>
<Copyright>Cumulocity</Copyright>
<PackageIconUrl>https://avatars2.githubusercontent.com/u/3456374?s=100</PackageIconUrl>
<RepositoryUrl>https://bitbucket.org/m2m/cumulocity-sdk-cs/src/master/REST-SDK/</RepositoryUrl>
<RepositoryUrl>https://github.com/SoftwareAG/cumulocity-sdk-cs/blob/master/REST-SDK/</RepositoryUrl>
<PackageProjectUrl>cumulocity.com</PackageProjectUrl>
<RepositoryType>git</RepositoryType>
<Description>
C# MQTT client enables the use of predefined messages to send them to the platform
</Description>
<PackageLicenseUrl>https://bitbucket.org/m2m/cumulocity-sdk-cs/src/master/LICENSE.txt</PackageLicenseUrl>
<PackageLicenseUrl>https://github.com/SoftwareAG/cumulocity-sdk-cs/blob/master/LICENSE.txt</PackageLicenseUrl>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
<Product>Cumulocity</Product>
<Copyright>Cumulocity</Copyright>
<PackageIconUrl>https://avatars2.githubusercontent.com/u/3456374</PackageIconUrl>
<RepositoryUrl>https://bitbucket.org/m2m/cumulocity-sdk-cs/src/master/REST-SDK/</RepositoryUrl>
<RepositoryUrl>https://github.com/SoftwareAG/cumulocity-sdk-cs/blob/master/REST-SDK/</RepositoryUrl>
<PackageProjectUrl>cumulocity.com</PackageProjectUrl>
<RepositoryType>git</RepositoryType>
<Description>Cumulocity comes with elaborate support for developing clients in C#. You can use C#, for example, to:
Interface Cumulocity with open, C#-enabled devices through a device-side agent. Today, many Embedded Linux devices such as the Raspberry Pi support C# out of the box.
Interface Cumulocity with closed devices speaking an existing, Internet-enabled protocol through a server-side agent.</Description>
<PackageLicenseUrl>https://bitbucket.org/m2m/cumulocity-sdk-cs/src/master/LICENSE.txt</PackageLicenseUrl>
<PackageLicenseUrl>https://github.com/SoftwareAG/cumulocity-sdk-cs/blob/master/LICENSE.txt</PackageLicenseUrl>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
</PropertyGroup>
<ItemGroup>
Expand All @@ -33,4 +33,4 @@ Interface Cumulocity with closed devices speaking an existing, Internet-enabled
<Reference Include="System.Web" />
</ItemGroup>

</Project>
</Project>
4 changes: 2 additions & 2 deletions REST-SDK/src/cometd.NetStandard/Cometd.NetStandard.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
<Company>Cumulocity</Company>
<Product>Cumulocity</Product>
<Description>CometD library to be used with Cumulocity.SDK.Client.</Description>
<PackageLicenseUrl>https://bitbucket.org/m2m/cumulocity-sdk-cs/src/master/LICENSE.txt</PackageLicenseUrl>
<PackageLicenseUrl>https://github.com/SoftwareAG/cumulocity-sdk-cs/blob/master/LICENSE.txt</PackageLicenseUrl>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<Copyright>Cumulocity</Copyright>
<PackageProjectUrl>cumulocity.com</PackageProjectUrl>
<RepositoryUrl>https://bitbucket.org/m2m/cumulocity-sdk-cs/src/master/REST-SDK/</RepositoryUrl>
<RepositoryUrl>https://github.com/SoftwareAG/cumulocity-sdk-cs/tree/master/REST-SDK/</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>

Expand Down
134 changes: 0 additions & 134 deletions jenkins/Jenkinsfile

This file was deleted.

26 changes: 0 additions & 26 deletions jenkins/build/Dockerfile

This file was deleted.

6 changes: 0 additions & 6 deletions jenkins/scripts/kill.sh

This file was deleted.

13 changes: 0 additions & 13 deletions jenkins/scripts/status.sh

This file was deleted.

0 comments on commit 78fb7d5

Please sign in to comment.