Skip to content
Snippets Groups Projects
Commit a893e8e7 authored by Sebastian Ebert's avatar Sebastian Ebert
Browse files

added ci

parent 3b086190
No related branches found
No related tags found
No related merge requests found
Pipeline #12117 failed
variables:
GIT_SUBMODULE_STRATEGY: recursive
GIT_DEPTH: 1000
stages:
- build
- publish
cache:
paths:
- .gradle/wrapper
- .gradle/caches
build:
image: maven:3-jdk-8
stage: build
script:
- ./gradlew --console=plain --no-daemon assemble jar
artifacts:
paths:
- "message_generation/build/libs"
expire_in: 1 week
publish:
image: maven:3-jdk-8
stage: publish
needs:
- build
script:
- "./gradlew publish"
only:
- main
See [rosjava_core](https://github.com/rosjava/rosjava_core) readme. See [rosjava_core](https://git-st.inf.tu-dresden.de/ceti/ros/ros-java-packages/rosjava-core-gradle) readme.
...@@ -31,36 +31,32 @@ subprojects { ...@@ -31,36 +31,32 @@ subprojects {
sourceCompatibility = 1.6 sourceCompatibility = 1.6
targetCompatibility = 1.6 targetCompatibility = 1.6
// These external repositories are copied from bootstrap.gradle. publishing {
repositories { publications {
jcenter() maven(MavenPublication) {
maven { artifactId = 'rosjava'
url "http://repository.springsource.com/maven/bundles/release" artifact("message_generation/build/libs/message_generation-${version}.jar") {
} extension 'jar'
maven { }
url "http://repository.springsource.com/maven/bundles/external"
}
}
// Configuration of the deployment repository is copied from the RosPlugin.
String mavenDeploymentRepository = System.getenv("ROS_MAVEN_DEPLOYMENT_REPOSITORY")
if (mavenDeploymentRepository != null &&
mavenDeploymentRepository != "") {
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
} }
} }
repositories { repositories {
maven { maven {
url 'file://' + mavenDeploymentRepository url "https://git-st.inf.tu-dresden.de/api/v4/projects/1108/packages/maven"
credentials(HttpHeaderCredentials) {
name = 'Job-Token'
value = System.getenv("CI_JOB_TOKEN")
}
authentication {
header(HttpHeaderAuthentication)
}
} }
}
} }
} else {
logger.warn("ROS_MAVEN_DEPLOYMENT_REPOSITORY is not set. Have you sourced setup.bash?")
}
} }
defaultTasks 'publish', 'installDist' defaultTasks 'publish', 'installDist'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment