Skip to content

Commit

Permalink
added tests for getting dependancies
Browse files Browse the repository at this point in the history
  • Loading branch information
garethahealy committed Apr 8, 2024
1 parent eeca37b commit 08ad0a5
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions jenkins-agents/jenkins-agent-ansible/Jenkinsfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ pipeline {
ansible --version
molecule --version
java -version

ansible-galaxy collection install community.general
"""
}
}
Expand Down
2 changes: 2 additions & 0 deletions jenkins-agents/jenkins-agent-conftest/Jenkinsfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ pipeline {
conftest --version
bats --version
yq --version

conftest pull github.com/redhat-cop/rego-policies.git//policy
"""
}
}
Expand Down
2 changes: 2 additions & 0 deletions jenkins-agents/jenkins-agent-golang/Jenkinsfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ pipeline {
sh """
go version
sonar-scanner -v

go install k8s.io/client-go@0.29.3
"""
}
}
Expand Down
3 changes: 3 additions & 0 deletions jenkins-agents/jenkins-agent-helm/Jenkinsfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ pipeline {
yq --version
kube-linter version
java -version

helm repo add jenkinsci https://charts.jenkins.io --force-update
helm repo update
"""
}
}
Expand Down
2 changes: 2 additions & 0 deletions jenkins-agents/jenkins-agent-mvn/Jenkinsfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ pipeline {
steps {
sh """
mvn --version

mvn dependency:get -DgroupId=org.apache.maven -DartifactId=maven-core -Dversion=2.2.1 -Dpackaging=jar
"""
}
}
Expand Down
2 changes: 1 addition & 1 deletion jenkins-agents/jenkins-agent-npm/Jenkinsfile.test
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pipeline {
npm -v
node -v

npm i express
npm install express
"""
}
}
Expand Down

0 comments on commit 08ad0a5

Please sign in to comment.