Skip to content

Commit 8461377

Browse files
Wojciech GladyszWojciech Gladysz
authored andcommitted
get artifacts
1 parent f3101ae commit 8461377

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

test/groovy/LRS_libci_pipeline.groovy

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,30 @@ import org.jenkinsci.plugins.workflow.steps.FlowInterruptedException
22

33
pipeline {
44
agent { label 'rs-orin-01.realsenseai.com' }
5+
56
options {
67
timestamps()
7-
timeout(time: 30, unit: 'MINUTES')
8+
timeout(time: 30, unit: 'MINUTES')
9+
}
10+
11+
parameters {
12+
string(name: 'ARTIFACTORY_SERVER_URL', description: '', defaultValue: 'https://rsartifactory.realsenseai.com/artifactory')
13+
string(name: 'ARTIFACTORY_REPO', description: '', defaultValue: 'realsense_generic_dev-il-local')
814
}
915

1016
stages {
17+
stage('get artifacts') {
18+
steps {
19+
script {
20+
def server = Artifactory.server 'realsense artifacts'
21+
server.download spec: 'download-spec.json'
22+
def baseDir = new File('/your/path')
23+
def newestDir = baseDir.listFiles()
24+
.findAll { it.isDirectory() }
25+
.max { it.lastModified() }
26+
}
27+
}
28+
}
1129
stage('pytest') {
1230
steps {
1331
script {

0 commit comments

Comments
 (0)