changed single quotes to double
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
def call(String repoName, String repoUrl) {
|
||||
container('helm') {
|
||||
sh 'helm repo add ${repoName} ${repoUrl}'
|
||||
sh "helm repo add ${repoName} ${repoUrl}"
|
||||
sh 'helm repo update'
|
||||
echo "Helm repository '${repoName}' added and updated"
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ def call(boolean skipTests = true) {
|
||||
if (skipTests) {
|
||||
mvnCommand += " -DskipTests"
|
||||
}
|
||||
sh 'mvnCommand'
|
||||
sh "${mvnCommand}"
|
||||
echo "Jar file ready"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ def call(String releaseName, String chartRepo, String chartName, String version,
|
||||
helmCommand += " --set ${key}=${value}"
|
||||
}
|
||||
|
||||
sh 'helmCommand'
|
||||
echo "Helm chart ${chartName} deployed -> $kubeApi"
|
||||
sh "${helmCommand}"
|
||||
echo "Helm chart ${chartName} deployed -> ${kubeApi}"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
def call(String dockerRepo, String imageName, String dockerfilePath, String buildContext, String nexusUser, String nexusPass) {
|
||||
container('docker') {
|
||||
sh 'dockerd --insecure-registry http://$NEXUS_DOCKER_URL &'
|
||||
sh "dockerd --insecure-registry http://$NEXUS_DOCKER_URL &"
|
||||
echo "Started Docker daemon"
|
||||
sh 'docker build -t ${imageName} -f ${dockerfilePath} ${buildContext}'
|
||||
sh "docker build -t ${imageName} -f ${dockerfilePath} ${buildContext}"
|
||||
echo "Docker image ${imageName} built"
|
||||
sh 'docker login http://${dockerRepo} -u ${nexusUser} -p ${nexusPass}'
|
||||
sh "docker login http://${dockerRepo} -u ${nexusUser} -p ${nexusPass}"
|
||||
echo "Logging in to ${dockerRepo}"
|
||||
sh 'docker tag ${imageName} ${dockerRepo}/my-docker-repo/${imageName}:latest'
|
||||
sh "docker tag ${imageName} ${dockerRepo}/my-docker-repo/${imageName}:latest"
|
||||
echo "Image ${imageName} tagged"
|
||||
sh 'docker push ${dockerRepo}/my-docker-repo/${imageName}:latest'
|
||||
sh "docker push ${dockerRepo}/my-docker-repo/${imageName}:latest"
|
||||
echo "Pushed Docker image ${imageName} to ${dockerRepo}"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
def call(String chartPath) {
|
||||
container('helm') {
|
||||
sh 'helm package ${chartPath}'
|
||||
sh "helm package ${chartPath}"
|
||||
echo "Helm chart packaged successfully: ${chartPath}"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
def call(String chartFile, String nexusUrl, String nexusUser, String nexusPass) {
|
||||
container('maven') {
|
||||
sh 'curl -u ${nexusUser}:${nexusPass} --upload-file ${chartFile} ${nexusUrl}'
|
||||
sh "curl -u ${nexusUser}:${nexusPass} --upload-file ${chartFile} ${nexusUrl}"
|
||||
echo "Helm chart uploaded: ${chartFile} -> ${nexusUrl}"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user