-
Notifications
You must be signed in to change notification settings - Fork 4
/
test-playbook.yaml
45 lines (44 loc) · 1.67 KB
/
test-playbook.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
- name: Ansible Nexus Module Test Suite
hosts: localhost
tasks:
- name: Try a non-existing artifact from Nexus repo
nexus:
nexus_endpoint: "http://nexus.apps.kubernetes.local"
username: "jenkins-nexus"
password: "jenkins"
artifact_id: "org.redhat:openshift-demo-application-quarkus-runner:1.1.1-SNAPSHOT"
artifact_format: "jar"
target: "/tmp/artifact.jar"
repository: "maven-releases"
ignore_errors: true
- name: Download an artifact from Nexus repo
nexus:
nexus_endpoint: "http://nexus.apps.kubernetes.local"
username: "jenkins-nexus"
password: "jenkins"
artifact_id: "org.redhat:openshift-demo-application-quarkus-runner:1.1.1-SNAPSHOT.12"
artifact_format: "jar"
target: "/tmp/artifact.jar"
repository: "maven-snapshots"
ignore_errors: true
- name: Test an already downloaded artifact
nexus:
nexus_endpoint: "http://nexus.apps.kubernetes.local"
username: "jenkins-nexus"
password: "jenkins"
artifact_id: "org.redhat:openshift-demo-application-quarkus-runner:1.1.1-SNAPSHOT.12"
artifact_format: "jar"
target: "/tmp/artifact.jar"
repository: "maven-snapshots"
ignore_errors: true
- name: Upload an artifact to nexus
nexus:
nexus_endpoint: "http://nexus.apps.kubernetes.local"
username: "jenkins-nexus"
password: "jenkins"
artifact_id: "org.redhat:new-application-artifact:1.0.0-RELEASE"
artifact_format: "jar"
source: "/tmp/artifact.jar"
operation: "PUT"
repository: "maven-releases"
ignore_errors: true