diff --git a/spring-cloud-pipelines/1.0.0.M7/multi/multi__jenkins_faq.html b/spring-cloud-pipelines/1.0.0.M7/multi/multi__jenkins_faq.html index 51371170..051f02d9 100644 --- a/spring-cloud-pipelines/1.0.0.M7/multi/multi__jenkins_faq.html +++ b/spring-cloud-pipelines/1.0.0.M7/multi/multi__jenkins_faq.html @@ -22,14 +22,14 @@ scripts without changing the whole pipeline.
git tag -l | xargs -n 1 git push --delete originjdk8 configuredJDK_VERSION env var and point to the proper one![]() | Tip |
|---|---|
The docker image comes in with Java installed at |
To change the default one just follow these steps:
-
-
-
-
+
+
+
+
And that’s it!
With scripted that but if you needed to this manually then this is how to do it:
-
-
-
No problem, just set the property / env var to true
AUTO_DEPLOY_TO_STAGE to automatically deploy to stageAUTO_DEPLOY_TO_PROD to automatically deploy to prodNo problem, just set the API_COMPATIBILITY_STEP_REQUIRED env variable
+
+
+
No problem, just set the property / env var to true
AUTO_DEPLOY_TO_STAGE to automatically deploy to stageAUTO_DEPLOY_TO_PROD to automatically deploy to prodNo problem, just set the API_COMPATIBILITY_STEP_REQUIRED env variable
to false and rerun the seed (you can pick it from the seed
job’s properties too).
When you get sth like this:
19:01:44 stderr: remote: Invalid username or password. 19:01:44 fatal: Authentication failed for 'https://github.com/marcingrzejszczak/github-webhook/' diff --git a/spring-cloud-pipelines/1.0.0.M7/multi/multi__jenkins_pipeline_common.html b/spring-cloud-pipelines/1.0.0.M7/multi/multi__jenkins_pipeline_common.html index 7fde2c06..f003a9bf 100644 --- a/spring-cloud-pipelines/1.0.0.M7/multi/multi__jenkins_pipeline_common.html +++ b/spring-cloud-pipelines/1.0.0.M7/multi/multi__jenkins_pipeline_common.html @@ -59,15 +59,15 @@ of Java installation and the others to another one.
Configure of the build step and modify the Git name / email.
If you want to set it globally you’ll have to remove the section from the build
step and follow these steps to set it globally.You can set Git email / user globally like this:
-
-
-
+
+
+
The scripts will need to access the credential in order to tag the repo.
You have to set credentials with id: git.
Below you can find instructions on how to set a credential (e.g. for Cloud Foundry cf-test credential but
remember to provide the one with id git).
-
-
-
-
Figure 7.7. Fill out the user / password and provide the git credential ID (in this example cf-test)

+
+
+
+
Figure 7.7. Fill out the user / password and provide the git credential ID (in this example cf-test)

./gradlew clean build
![]() | Warning |
|---|---|
The ran test only checks if your scripts compile. |
Check out the tutorial. Provide the link to this repository in your Jenkins installation.
![]() | Warning |
|---|---|
Remember that views can be overridden that’s why the suggestion is to contain in one script all the logic needed to build a view
for a single project (check out that |
If you would like to run the pre-configured Jenkins image somewhere other than your local machine, we diff --git a/spring-cloud-pipelines/1.0.0.M7/multi/multi__project_opinions.html b/spring-cloud-pipelines/1.0.0.M7/multi/multi__project_opinions.html index dc68e2db..3af4ed6e 100644 --- a/spring-cloud-pipelines/1.0.0.M7/multi/multi__project_opinions.html +++ b/spring-cloud-pipelines/1.0.0.M7/multi/multi__project_opinions.html @@ -1,4 +1,4 @@
In this section we will go through the assumptions we’ve made in the project -structure and project properties.
We’ve taken the following opinionated decisions for a Cloud Foundry based project:
For Maven (example project):
settings.xml is parametrized to pass the credentials to push code to Artifactory
M2_SETTINGS_REPO_ID - server id for Artifactory / Nexus deploymentM2_SETTINGS_REPO_USERNAME - username for Artifactory / Nexus deploymentM2_SETTINGS_REPO_PASSWORD - password for Artifactory / Nexus deployment./mvnw clean deploystubrunner.ids property to retrieve list of collaborators for which stubs should be downloadedrepo.with.binaries property - (Injected by the pipeline) will contain the URL to the repo containing binaries (e.g. Artifactory)distribution.management.release.id property - (Injected by the pipeline) ID of the distribution management. Corresponds to server id in settings.xmldistribution.management.release.url property - (Injected by the pipeline) Will contain the URL to the repo containing binaries (e.g. Artifactory)apicompatibility Maven profilelatest.production.version property - (Injected by the pipeline) will contain the latest production version for the repo (retrieved from Git tags)smoke Maven profilee2e Maven profileFor Gradle (example project check the gradle/pipeline.gradle file):
deploy task for artifacts deploymentREPO_WITH_BINARIES env var - (Injected by the pipeline) will contain the URL to the repo containing binaries (e.g. Artifactory)M2_SETTINGS_REPO_USERNAME env var - Username used to send the binary to the repo containing binaries (e.g. Artifactory)M2_SETTINGS_REPO_PASSWORD env var - Password used to send the binary to the repo containing binaries (e.g. Artifactory)apiCompatibility tasklatestProductionVersion property - (Injected by the pipeline) will contain the latest production version for the repo (retrieved from Git tags)smoke taske2e taskgroupId task to retrieve group idartifactId task to retrieve artifact idcurrentVersion task to retrieve the current versionstubIds task to retrieve list of collaborators for which stubs should be downloadedWe’ve taken the following opinionated decisions for a Cloud Foundry based project:
SYSTEM_PROPS env variableFor Maven (example project):
settings.xml is parametrized to pass the credentials to push code to Artifactory and Docker repository
M2_SETTINGS_REPO_ID - server id for Artifactory / Nexus deploymentM2_SETTINGS_REPO_USERNAME - username for Artifactory / Nexus deploymentM2_SETTINGS_REPO_PASSWORD - password for Artifactory / Nexus deploymentDOCKER_SERVER_ID - server id for Docker image pushingDOCKER_USERNAME - username for Docker image pushingDOCKER_PASSWORD - password for Docker image pushingDOCKER_EMAIL - email for Artifactory / Nexus deploymentDOCKER_REGISTRY_URL env var - (Overridable - defaults to DockerHub) URL of the Docker registryDOCKER_REGISTRY_ORGANIZATION - env var containing the organization where your Docker repo lays./mvnw clean deploystubrunner.ids property to retrieve list of collaborators for which stubs should be downloadedrepo.with.binaries property - (Injected by the pipeline) will contain the URL to the repo containing binaries (e.g. Artifactory)distribution.management.release.id property - (Injected by the pipeline) ID of the distribution management. Corresponds to server id in settings.xmldistribution.management.release.url property - (Injected by the pipeline) Will contain the URL to the repo containing binaries (e.g. Artifactory)deployment.yml contains the Kubernetes deployment descriptorservice.yml contains the Kubernetes service descriptorapicompatibility Maven profilelatest.production.version property - (Injected by the pipeline) will contain the latest production version for the repo (retrieved from Git tags)smoke Maven profilee2e Maven profileFor Gradle (example project check the gradle/pipeline.gradle file):
deploy task for artifacts deploymentREPO_WITH_BINARIES env var - (Injected by the pipeline) will contain the URL to the repo containing binaries (e.g. Artifactory)M2_SETTINGS_REPO_USERNAME env var - Username used to send the binary to the repo containing binaries (e.g. Artifactory)M2_SETTINGS_REPO_PASSWORD env var - Password used to send the binary to the repo containing binaries (e.g. Artifactory)DOCKER_REGISTRY_URL env var - (Overridable - defaults to DockerHub) URL of the Docker registryDOCKER_USERNAME env var - Username used to send the the Docker imageDOCKER_PASSWORD env var - Password used to send the the Docker imageDOCKER_EMAIL env var - Email used to send the the Docker imageDOCKER_REGISTRY_ORGANIZATION - env var containing the organization where your Docker repo laysdeployment.yml contains the Kubernetes deployment descriptorservice.yml contains the Kubernetes service descriptorapiCompatibility tasklatestProductionVersion property - (Injected by the pipeline) will contain the latest production version for the repo (retrieved from Git tags)smoke taske2e taskgroupId task to retrieve group idartifactId task to retrieve artifact idcurrentVersion task to retrieve the current versionstubIds task to retrieve list of collaborators for which stubs should be downloadedWe’ve taken the following opinionated decisions for a Cloud Foundry based project:
For Maven (example project):
settings.xml is parametrized to pass the credentials to push code to Artifactory
M2_SETTINGS_REPO_ID - server id for Artifactory / Nexus deploymentM2_SETTINGS_REPO_USERNAME - username for Artifactory / Nexus deploymentM2_SETTINGS_REPO_PASSWORD - password for Artifactory / Nexus deployment./mvnw clean deploystubrunner.ids property to retrieve list of collaborators for which stubs should be downloadedrepo.with.binaries property - (Injected by the pipeline) will contain the URL to the repo containing binaries (e.g. Artifactory)distribution.management.release.id property - (Injected by the pipeline) ID of the distribution management. Corresponds to server id in settings.xmldistribution.management.release.url property - (Injected by the pipeline) Will contain the URL to the repo containing binaries (e.g. Artifactory)apicompatibility Maven profilelatest.production.version property - (Injected by the pipeline) will contain the latest production version for the repo (retrieved from Git tags)smoke Maven profilee2e Maven profileFor Gradle (example project check the gradle/pipeline.gradle file):
deploy task for artifacts deploymentREPO_WITH_BINARIES env var - (Injected by the pipeline) will contain the URL to the repo containing binaries (e.g. Artifactory)M2_SETTINGS_REPO_USERNAME env var - Username used to send the binary to the repo containing binaries (e.g. Artifactory)M2_SETTINGS_REPO_PASSWORD env var - Password used to send the binary to the repo containing binaries (e.g. Artifactory)apiCompatibility tasklatestProductionVersion property - (Injected by the pipeline) will contain the latest production version for the repo (retrieved from Git tags)smoke taske2e taskgroupId task to retrieve group idartifactId task to retrieve artifact idcurrentVersion task to retrieve the current versionstubIds task to retrieve list of collaborators for which stubs should be downloadedWe’ve taken the following opinionated decisions for a Cloud Foundry based project:
SYSTEM_PROPS env variableFor Maven (example project):
settings.xml is parametrized to pass the credentials to push code to Artifactory and Docker repository
M2_SETTINGS_REPO_ID - server id for Artifactory / Nexus deploymentM2_SETTINGS_REPO_USERNAME - username for Artifactory / Nexus deploymentM2_SETTINGS_REPO_PASSWORD - password for Artifactory / Nexus deploymentDOCKER_SERVER_ID - server id for Docker image pushingDOCKER_USERNAME - username for Docker image pushingDOCKER_PASSWORD - password for Docker image pushingDOCKER_EMAIL - email for Artifactory / Nexus deploymentDOCKER_REGISTRY_URL env var - (Overridable - defaults to DockerHub) URL of the Docker registryDOCKER_REGISTRY_ORGANIZATION - env var containing the organization where your Docker repo lays./mvnw clean deploystubrunner.ids property to retrieve list of collaborators for which stubs should be downloadedrepo.with.binaries property - (Injected by the pipeline) will contain the URL to the repo containing binaries (e.g. Artifactory)distribution.management.release.id property - (Injected by the pipeline) ID of the distribution management. Corresponds to server id in settings.xmldistribution.management.release.url property - (Injected by the pipeline) Will contain the URL to the repo containing binaries (e.g. Artifactory)deployment.yml contains the Kubernetes deployment descriptorservice.yml contains the Kubernetes service descriptorapicompatibility Maven profilelatest.production.version property - (Injected by the pipeline) will contain the latest production version for the repo (retrieved from Git tags)smoke Maven profilee2e Maven profileFor Gradle (example project check the gradle/pipeline.gradle file):
deploy task for artifacts deploymentREPO_WITH_BINARIES env var - (Injected by the pipeline) will contain the URL to the repo containing binaries (e.g. Artifactory)M2_SETTINGS_REPO_USERNAME env var - Username used to send the binary to the repo containing binaries (e.g. Artifactory)M2_SETTINGS_REPO_PASSWORD env var - Password used to send the binary to the repo containing binaries (e.g. Artifactory)DOCKER_REGISTRY_URL env var - (Overridable - defaults to DockerHub) URL of the Docker registryDOCKER_USERNAME env var - Username used to send the the Docker imageDOCKER_PASSWORD env var - Password used to send the the Docker imageDOCKER_EMAIL env var - Email used to send the the Docker imageDOCKER_REGISTRY_ORGANIZATION - env var containing the organization where your Docker repo laysdeployment.yml contains the Kubernetes deployment descriptorservice.yml contains the Kubernetes service descriptorapiCompatibility tasklatestProductionVersion property - (Injected by the pipeline) will contain the latest production version for the repo (retrieved from Git tags)smoke taske2e taskgroupId task to retrieve group idartifactId task to retrieve artifact idcurrentVersion task to retrieve the current versionstubIds task to retrieve list of collaborators for which stubs should be downloaded