Hi all,
On our release flow, we would like use Jenkins Pipeline to build firmware and release it.
We try to use following example code to build firmware from openwrt.
pipeline {
environment {
PROJECT='d6ww'
}
agent {
docker {
image 'openwrt:rts'
}
}
stages {
stage('Checkout') {
steps {
git(url: 'ssh://git@git01/openwrt/openwrt.git', branch: '19.07.7/development')
}
}
stage('Build in Docker') {
steps {
sh '''
source env/$PROJECT.conf;
make;
'''
}
}
}
}
Since the feeds are private repo in our server, git clone needs key to checkout the code of feeds.
Inside docker env, we do not have the key(no home directory to save key) to clone feeds from our server.
Does anyone have experience about how to resolve authentication problem at git clone in docker?
I hope this is clear for anyone. Thanks.