Update Jenkinsfile
parent
1e42f42f67
commit
7f958255e8
|
|
@ -89,7 +89,7 @@ spec:
|
||||||
lifecycle: experimental
|
lifecycle: experimental
|
||||||
owner: DH_TEAM_ONEMDW"""
|
owner: DH_TEAM_ONEMDW"""
|
||||||
|
|
||||||
writeFile file: "${params.serviceName}/catalog-info.yaml", text: yamlContent
|
writeFile file: "catalog-info.yaml", text: yamlContent
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -111,11 +111,17 @@ spec:
|
||||||
|
|
||||||
git clone https://${GIT_PAT}@gitlab.com/${params.repositoryProject}/${params.repositoryName}.git
|
git clone https://${GIT_PAT}@gitlab.com/${params.repositoryProject}/${params.repositoryName}.git
|
||||||
|
|
||||||
cp -r ${params.serviceName}/* ${params.repositoryName}/
|
git checkout -b main
|
||||||
|
cp catalog-info.yaml ${params.repositoryName}/catalog-info.yaml
|
||||||
cd ${params.repositoryName}
|
cd ${params.repositoryName}
|
||||||
|
git add .
|
||||||
|
git commit -m "Initial catalog.yaml"
|
||||||
|
git push origin main
|
||||||
|
|
||||||
git checkout -b skeleton
|
git checkout -b skeleton
|
||||||
|
|
||||||
|
cp -r ../${params.serviceName}/* .
|
||||||
|
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Initial commit on skeleton branch"
|
git commit -m "Initial commit on skeleton branch"
|
||||||
git push origin skeleton
|
git push origin skeleton
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue