Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeptossss committed Nov 24, 2023
1 parent 882c0d2 commit 73e1666
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions jenkins/job_dsl.groovy
Original file line number Diff line number Diff line change
@@ -1,21 +1,7 @@
import java.io.File

println "Creating Jenkins jobs..."

def cloneRepo() {
def workspace = new File('/tmp/whanos_repo')
def cloneCommand = "git clone https://github.com/Tux-Inc/Whanos.git /tmp/whanos_repo"
def process = cloneCommand.execute()
process.waitFor()
if (process.exitValue() != 0) {
println "Error cloning repository: " + process.err.text
return null
}
return new File(workspace, "images")
}

def imagesDir = cloneRepo()
println "Images directory: " + imagesDir
def workspace = new File('/tmp/whanos_repo')
def imagesDir = new File(workspace, "images")

def languages = []

Expand Down

0 comments on commit 73e1666

Please sign in to comment.