Skip to content

Commit

Permalink
pipeline
Browse files Browse the repository at this point in the history
--HG--
branch : v300
  • Loading branch information
rogierc committed Jan 27, 2024
1 parent 5b44a73 commit 8fcf518
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 21 deletions.
4 changes: 1 addition & 3 deletions AgentDockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ FROM maven:3.9.6-eclipse-temurin-8-alpine
#add packages
#libgcc adds cyphersuites not available in alpine by default
#shadow adds useradd and groupadd
RUN apk --update-cache add libgcc shadow git gpg gpg-agent && apk cache clean
RUN apk --update-cache add libgcc shadow musl python3 mercurial gpg gpg-agent && apk cache clean

ENV JENKINS_HOME /home/jenkins
ENV JENKINS_KEYS /var/lib/jenkins_keys

#set user
ENV GNUPGHOME "${JENKINS_KEYS}/.gnupg"

# Set user and group
Expand Down
22 changes: 11 additions & 11 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pipeline
dockerfile
{
filename 'AgentDockerfile'
args '--network sonar_network --volume jenkins_keys:/var/lib/jenkins_keys --volume "jenkinsagent_m2repo:/home/jenkins/.m2/repository' }
args '--network sonar_network --volume jenkins_keys:/var/lib/jenkins_keys --volume jenkinsagent_m2repo:/home/jenkins/.m2/repository --add-host $REPO_ALIAS' }
}
options
{
Expand All @@ -31,18 +31,18 @@ pipeline
}
steps
{
sh '''
git config user.email "jenkins@teslanet.nl"
git config user.name "jenkins"
mvn -B -s $MVN_SETTINGS release:clean
'''
sh '''
mvn --errors --batch-mode --settings $MVN_SETTINGS release:clean
'''
}
}
stage('build')
{
steps
{
sh 'mvn -B -s $MVN_SETTINGS clean package -DskipTests'
sh '''
mvn --errors --batch-mode --settings $MVN_SETTINGS clean package -DskipTests
'''
}
}
stage('verify')
Expand All @@ -56,7 +56,7 @@ pipeline
}
steps
{
sh 'mvn -B -s $MVN_SETTINGS verify sonar:sonar -Psonar'
sh 'mvn --errors --batch-mode --settings $MVN_SETTINGS verify sonar:sonar -Psonar'
}
}
stage('verify and deploy')
Expand All @@ -67,7 +67,7 @@ pipeline
}
steps
{
sh 'mvn -B -s $MVN_SETTINGS deploy sonar:sonar -Psonar'
sh 'mvn --errors --batch-mode --settings $MVN_SETTINGS deploy sonar:sonar -Psonar'
}
}
stage('release-prepare')
Expand All @@ -78,7 +78,7 @@ pipeline
}
steps
{
sh 'mvn -B -s $MVN_SETTINGS release:prepare'
sh 'mvn --errors --batch-mode --settings $MVN_SETTINGS release:prepare'
}
}
stage('release-perform')
Expand All @@ -89,7 +89,7 @@ pipeline
}
steps
{
sh 'mvn -B -s $MVN_SETTINGS release:perform'
sh 'mvn --errors --batch-mode --settings $MVN_SETTINGS release:perform'
}
}
}
Expand Down
26 changes: 22 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,21 @@ The complete Mule CoAP Connector documentation can be found at [Teslanet.nl](htt
## Mule supported versions
* Mule 4.3+

## Implemented CoAP specifications
The CoAP protocol is supported as defined in:
## The CoAP protocol
The CoAP protocol is an Internet Standard published by [IETF](https://www.ietf.org/) in:

* [IETF rfc 6690](https://www.rfc-editor.org/rfc/rfc6690)
* [IETF rfc 7252](https://www.rfc-editor.org/rfc/rfc7252)
* [IETF rfc 7641](https://www.rfc-editor.org/rfc/rfc7641)
* [IETF rfc 7959](https://www.rfc-editor.org/rfc/rfc7959)
* [IETF rfc 8132 ](https://www.rfc-editor.org/rfc/rfc8132)

and other.

## Uses

* [Californium](https://www.eclipse.org/californium/) 3.10.0
* [Californium](https://www.eclipse.org/californium/) 2.8.0
* [Californium](https://www.eclipse.org/californium/) 3.10.0 (development)

## Installation

Expand All @@ -35,7 +39,21 @@ add following dependency to your `pom.xml`:
<dependency>
<groupId>nl.teslanet.mule.connectors.coap</groupId>
<artifactId>mule-coap-connector</artifactId>
<version>3.0.0-M1</version>
<version>2.1.1</version>
<classifier>mule-plugin</classifier>
</dependency>

```

To use the latest development milestone,
add following dependency to your `pom.xml`:

```xml

<dependency>
<groupId>nl.teslanet.mule.connectors.coap</groupId>
<artifactId>mule-coap-connector</artifactId>
<version>3.0.0-M2</version>
<classifier>mule-plugin</classifier>
</dependency>

Expand Down
4 changes: 4 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Mule CoAP Connector Release Notes
![Mule-Coap logo](icon/icon.svg)

## Development milestone 3.0.0-M2

* Californium 3.10.0 upgrade

## Release 2.1.1

* Californium 2.8.0 update.
Expand Down
7 changes: 4 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@
</properties>

<scm>
<connection>scm:git:https://github.com/teslanet-nl/mule-coap-connector.git</connection>
<developerConnection>scm:git:https://github.com/teslanet-nl/mule-coap-connector.git</developerConnection>
<url>https://github.com/teslanet-nl/mule-coap-connector/tree/main</url>
<connection>${mule-coap-connector.connection}</connection>
<developerConnection>${mule-coap-connector.developerConnection}</developerConnection>
<url>${mule-coap-connector.url}</url>
<tag>HEAD</tag>
</scm>

Expand Down Expand Up @@ -237,6 +237,7 @@ Contributors:
<version>2.5.3</version>
<configuration>
<username>${release.user}</username>
<password>${release.password}</password>
<autoVersionSubmodules>true</autoVersionSubmodules>
<useReleaseProfile>false</useReleaseProfile>
<releaseProfiles>release</releaseProfiles>
Expand Down

0 comments on commit 8fcf518

Please sign in to comment.