Open
Description
I run this image using Jenkins. But gradlew
is failed with this error message.
The SDK directory is not writable (/opt/android)
Jenkinsefile
pipeline {
agent {
docker {
image 'reactnativecommunity/react-native-android'
}
}
stages {
stage('Test') {
steps {
sh 'npm install'
}
}
stage('Build') {
steps {
sh 'cd android && chmod +x gradlew && ./gradlew assembleRelease'
}
}
stage('PROD') {
parallel {
stage('PROD') {
steps {
echo 'prod'
}
}
stage('DEV') {
steps {
echo 'dev'
}
}
}
}
}
environment {
npm_config_cache = 'npm-cache'
}
}
Metadata
Metadata
Assignees
Labels
No labels