Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

After the automated deployment job execution, user has to configure the artifact repository details in maven settings.xml in automatics_jenkins docker to maven deploy the automatics artifacts. This is required for test execution, as maven artifacts of automatics-core, test-utils are pulled from artifact repo during execution.The below configurations needs to be available in Automatics Orchestration, Automatics Properties, Device Manager and Jenkins jobs inorder to trigger a successful Test case execution from Automatics Orchestration

  • Login in to jenkins docker by executing docker exec -it automatics_jenkins bash. 
  • Edit settings.xml file in /etc/maven/settings.xml to add maven artifact repository details.
    • Add profile as below and add the artifactory repository url in <url> section

<profile>
      <id>rdk-repo</id>      
      <repositories>
        <repository>
          <id>rdk-repo</id>          
          <url>Add artifactory repository url here</url>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>true</enabled>
            <updatePolicy>always</updatePolicy>
          </snapshots>
        </repository>       
      </repositories>
      </profile>

    • Add artifact repository credential details as given below:

<servers>
    <server>
      <id>rdk-repo</id>
        <username></username>
        <password></password>
  </server>

    • Update profile as active

<activeProfiles>
    <activeProfile>rdk-repo</activeProfile>    
  </activeProfiles>


More details about maven settings.xml configuration can be referred from https://maven.apache.org/settings.html

Jenkins Jobs

The below set of jobs will be created after successful completion of Automated Build and Deployment execution.

...